![]() |
NDEVR
API Documentation
|
Forward declaration of LogPtr for log access. More...
Static Public Member Functions | |
| static uint04 | CurrentThreadID () |
| Gets the unique identifier of the current thread. | |
| static String | CurrentThreadName () |
| Gets the name of the current thread. | |
| static bool | IsPrimaryThread () |
| Checks whether the calling thread is the primary (main) thread. | |
| static uint04 | PrimaryThreadID () |
| Gets the unique identifier of the primary thread. | |
| static void | RequestConcurrentExecution (const StringView &name, const std::function< void()> &function) |
| Requests that a function be executed concurrently on a separate thread. | |
| static void | RequestNoSleep (bool request_no_sleep, const LogPtr &log) |
| Requests that the system prevent or allow the device to sleep. | |
| static void | RequestSleep (const TimeSpan &interval) |
| Puts the current thread to sleep for a specified duration. | |
| static void | SetCurrentThreadName (const StringView &name) |
| Sets the name of the current thread for debugging and identification. | |
| static void | SetPrimaryThreadID (uint04 primary_thread) |
| Sets the thread ID that should be considered the primary thread. | |
Forward declaration of LogPtr for log access.
Utility functions for querying and controlling the current thread.
|
static |
Gets the unique identifier of the current thread.
|
static |
Gets the name of the current thread.
|
static |
Checks whether the calling thread is the primary (main) thread.
|
static |
Gets the unique identifier of the primary thread.
|
static |
Requests that a function be executed concurrently on a separate thread.
| [in] | name | A descriptive name for the concurrent task. |
| [in] | function | The function to execute concurrently. |
References RequestSleep().
|
static |
Requests that the system prevent or allow the device to sleep.
| [in] | request_no_sleep | True to prevent sleep, false to allow it. |
| [in] | log | The log to record the request. |
|
static |
Puts the current thread to sleep for a specified duration.
| [in] | interval | The time span to sleep. |
Referenced by HardwareCommandQueue< t_type >::executeCommandBlocking(), RequestConcurrentExecution(), RealSenseServer::WorkerThread::run(), RealSenseMotor::update(), and DeviCounterSimulatorIO::waitForReadyRead().
|
static |
Sets the name of the current thread for debugging and identification.
| [in] | name | The name to assign to the current thread. |
|
static |
Sets the thread ID that should be considered the primary thread.
| [in] | primary_thread | The thread ID to designate as primary. |