#include <cisstOSAbstraction/osaXyz.h>
#include <cisstOSAbstraction.h>
| CISST_EXPORT void __os_exit | ( | void | ) |
The OS dependent cleanup that is to be executed for real-time support. This is called from the destructor of TaskManager.
| CISST_EXPORT void __os_init | ( | void | ) |
The OS dependent initialization that is to be executed for real-time support. This is called from the constructor of TaskManager, which is implemented as singleton.
| void CISST_EXPORT osaSleep | ( | double | timeInSeconds | ) |
Define osaSleep.
Execute a wait or sleep. This is intended for general purpose use; no time guarantees are made on any OS. Within a thread, it is preferable to call osaThread::Sleep. The mtsTask class provides mtsTask::Sleep, which invokes osaThread::Sleep.
On some platforms, osaSleep might block the calling thread and not relinquish the processor to other threads. In particular, there are reports that calling osaSleep in RTAI may lead to stack overflows.
| time | Time in seconds to sleep |