Definition at line 19 of file thread.h.
void cCondWait::SleepMs |
( |
int | TimeoutMs | ) |
|
|
static |
Creates a cCondWait object and uses it to sleep for TimeoutMs milliseconds, immediately giving up the calling thread's time slice and thus avoiding a "busy wait".
In order to avoid a possible busy wait, TimeoutMs will be automatically limited to values >2.
Definition at line 73 of file thread.c.
References cCondWait(), max(), and Wait().
Referenced by cCuttingThread::Action(), cDirCopier::Action(), cDvbPlayer::Action(), cDvbSubtitleConverter::Action(), cLircUsrRemote::Action(), cRecordingsHandler::Action(), cSectionHandler::Action(), cTrueColorDemo::Action(), cTSBuffer::Action(), cThread::Cancel(), cIndexFile::cIndexFile(), cPipe::Close(), CutRecording(), cRcuRemote::DetectCode(), GenerateIndex(), cRecordControl::GetEvent(), cLockFile::Lock(), cMenuSetupCAM::Menu(), cCiMMI::Process(), cInterface::QueryKeys(), cTransfer::Receive(), cVideoDirectoryScannerThread::ScanVideoDir(), cDvbSdFfDevice::SetDigitalAudioDevice(), cThread::Start(), cRecordings::Update(), cDiseqc::Wait(), cCamSlots::WaitForAllCamSlotsReady(), cDevice::WaitForAllDevicesReady(), and cSVDRPServerHandler::WaitUntilReady().
bool cCondWait::Wait |
( |
int | TimeoutMs = 0 | ) |
|