Class for Semaphore (SEM) Events (see BTF Specification Chapter 2.3.7).
Definition: semaphore.h:19
static std::string eventToString(Events ev)
Converts the enum Events into string.
Definition: semaphore.cpp:119
ErrorCodes doStateTransition(Events ev)
Transitions the current state depending on the event.
Definition: semaphore.cpp:13
static Events stringToEvent(const std::string &str)
Converts a string into the enum Events.
Definition: semaphore.cpp:158
Events
Possible types of Semaphore events.
Definition: semaphore.h:25
@ requestsemaphore
The requestsemaphore event indicates that a process (source) requests a semaphore (target).
States
Possible types of Process states.
Definition: semaphore.h:97
@ used
Semaphore has assigned requests and is still able to handle at least one request.
@ free
Semaphore has no assigned users.
@ full
Semaphore has assigned requests and has reached its maximum amount of simultaneous accesses.
@ overfull
Semaphore is locked and at least one request is waiting for the semaphore.
Semaphore(States state=States::unknown)
Constructor of the class Semaphore.
Definition: semaphore.cpp:9
ErrorCodes
Error Codes for the btf library.
Definition: common.h:13