12#ifndef ROC_CORE_TIMER_H_
13#define ROC_CORE_TIMER_H_
17#include "roc_core/semaphore.h"
25class Timer :
public NonCopyable<> {
Atomic integer. Provides sequential consistency. For a fine-grained memory order control,...
bool try_set_deadline(nanoseconds_t deadline)
Set timer deadline. Can be called concurrently, but only one concurrent call will succeed....
void wait_deadline()
Wait until deadline expires. Should be called from a single thread. Assumes that wait_deadline() call...
General-purpose building blocks and platform abstraction layer.
int64_t nanoseconds_t
Nanoseconds.