NDDSUtility Class Reference
[Unsupported Utilities]

Unsupported utility APIs. More...

List of all members.

Static Public Member Functions

static void sleep (const struct DDS_Duration_t &durationIn)
 Block the calling thread for the specified duration.


Detailed Description

Unsupported utility APIs.

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.


Member Function Documentation

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.

Parameters:
durationIn <<in>> Sleep duration.
MT Safety:
safe
Examples:
HelloWorld_publisher.cxx, and HelloWorld_subscriber.cxx.


RTI Data Distribution Service C++ API Version 4.5e Copyright © 23 Oct 2011 Real-Time Innovations, Inc