BloombergLP::bslmt::ThreadUtil::sleep

Suspend the current thread for at least the specified relative time.

Synopses

Declared in <bslmt_threadutil.h>

Suspend the current thread for at least the specified relative time.

static
void
sleep(bsls::TimeInterval const& sleepTime);
» more...

Suspend the current thread for at least the specified relative time.

template<
    class REP_TYPE,
    class PERIOD_TYPE>
static
void
sleep(bsl::chrono::duration<REP_TYPE, PERIOD_TYPE> const& sleepTime);
» more...

Parameters

NameDescription
sleepTimeminimum relative duration to sleep