Static Public Member Functions | |
static void | sleep (const struct DDS_Duration_t &durationIn) |
Block the calling thread for the specified duration. |
Unsupported APIs used in example code. The static methods supplied by this class are used by the example code distributed with RTI Data Distribution Service and generated by nddsgen. These methods are not supported by RTI.
static void NDDSUtility::sleep | ( | const struct DDS_Duration_t & | durationIn | ) | [static] |
Block the calling thread for the specified duration.
Note that the achievable resolution of sleep is OS-dependent. That is, do not assume that you can sleep for 1 nanosecond just because you can specify a 1-nanosecond sleep duration via the API. The sleep resolution on most operating systems is usually 10 ms or greater.
durationIn | <<in>> Sleep duration. |