OpenDaVINCI  4.15.3
odcore::base::Thread Class Reference

#include <Thread.h>

Static Public Member Functions

static void usleepFor (const long &microseconds)
static void usleepUntil (const odcore::data::TimeStamp &ts)

Detailed Description

This class provides only a convenient Thread::usleepFor() - interface.

Member Function Documentation

void odcore::base::Thread::usleepUntil ( const odcore::data::TimeStamp ts)

This methods sleeps until the specified TimeStamp or returns immediately if the specified time is in the past.

tsTimeStamp of the point in time until this thread is suspended.

References odcore::data::TimeStamp::getFractionalMicroseconds(), and odcore::wrapper::ConcurrencyFactory::usleepUntil().

Referenced by odcore::base::module::AbstractCIDModule::waitForNextFullSecond().