MIRA
|
For detailed information see Threads.
More...
Classes | |
class | CyclicRunnable |
This class extends threads by the ability to execute an operation repeatedly in an defined interval. More... | |
class | ThreadMonitor |
A thread monitor class. More... | |
Macros | |
#define | MIRA_SLEEP(ms) mira::sleep(mira::Duration::milliseconds(ms)); |
Sleeps for ms milliseconds This is a thread interruption point - if interruption of the current thread has been requested, its execution will terminate. More... | |
#define | MIRA_DISABLE_THREAD_INTERRUPT disable_interruption _disable_interruption_USE_ONLY_ONCE_PER_SCOPE_; |
Disable interruption of the current thread in the scope where this is placed. More... | |
#define | MIRA_SLEEP_NO_INTERRUPT(ms) |
Sleeps for ms milliseconds, thread interruption is disabled for this time (but not beyond). More... | |
Typedefs | |
typedef uint32 | ThreadID |
Platform independent thread ID. More... | |
Functions | |
float MIRA_BASE_EXPORT | getCPUUsage () |
Returns the CPU usage of the calling process in percent. More... | |
For detailed information see Threads.
#define MIRA_SLEEP | ( | ms | ) | mira::sleep(mira::Duration::milliseconds(ms)); |
Sleeps for ms milliseconds This is a thread interruption point - if interruption of the current thread has been requested, its execution will terminate.
#define MIRA_DISABLE_THREAD_INTERRUPT disable_interruption _disable_interruption_USE_ONLY_ONCE_PER_SCOPE_; |
Disable interruption of the current thread in the scope where this is placed.
#define MIRA_SLEEP_NO_INTERRUPT | ( | ms | ) |
Sleeps for ms milliseconds, thread interruption is disabled for this time (but not beyond).
typedef uint32 ThreadID |
Platform independent thread ID.
The ID of the current thread can be obtained using the getCurrentThreadID() method.
float MIRA_BASE_EXPORT mira::getCPUUsage | ( | ) |
Returns the CPU usage of the calling process in percent.