109 bool was_suspended_by_task_preempt_{
false};
Class for Runnable Events (see BTF Specification Chapter 2.3.3).
Definition: runnable.h:19
void setWasSuspendedByTaskPreempt(bool val)
Sets the variable "was_suspended_by_task_preempt".
Definition: runnable.cpp:135
bool wasSuspendedByTaskPreempt() const
Checks, if the current runnable is suspended due to a preemption.
Definition: runnable.cpp:130
Events
Possible types of runnable events.
Definition: runnable.h:43
@ terminate
The terminate event indicates that a runnable (target) that has been called by a process (source) has...
@ suspend
The suspend event indicates that a runnable (target) has to pause its execution as its calling proces...
@ resume
The resume event indicates that a runnable (target) can continue execution as its process (source) re...
@ start
The start event indicates that a runnable (target) gets called by a process (source) and starts execu...
ErrorCodes doStateTransition(Events core_event)
Transitions the current state depending on the event.
Definition: runnable.cpp:13
bool isRunning() const
Checks, if the current runnable is in the state running.
Definition: runnable.cpp:125
Runnable(States state=States::unknown)
Constructor of the class Runnable.
Definition: runnable.cpp:9
static Events stringToEvent(const std::string &str)
Converts a string into the enum Events.
Definition: runnable.cpp:101
static std::string eventToString(Events ev)
Converts the enum Events into string.
Definition: runnable.cpp:84
States
Possible types of runnable states.
Definition: runnable.h:25
@ suspended
The runnable instance stops execution as the process instance has to be removed from core.
@ running
The runnable instance executes on a core.
@ terminated
The runnable instance has finished execution or hasn’t been started yet.
ErrorCodes
Error Codes for the btf library.
Definition: common.h:13