1#ifndef OS_WRAPPER_TIMEOUT_H_INCLUDED
2#define OS_WRAPPER_TIMEOUT_H_INCLUDED
21 explicit Timeout(
long milliseconds) : m_milliseconds(milliseconds) {}
32 operator long()
const {
return m_milliseconds; }
Value object for the timeout.
Definition Timeout.h:11
static const Timeout FOREVER
Constant value object for waiting forever until condition satisfied.
Definition Timeout.h:42
static const Timeout POLLING
Constant value object for non-blocking.
Definition Timeout.h:37
Timeout(long milliseconds)
Constructor of Timeout.
Definition Timeout.h:21
Timeout(const Timeout &tmout)
Copy constructor of Timeout.
Definition Timeout.h:27
OSWrapper provides abstract C++ interface of common RTOS: thread, mutex, event flag,...
Definition EventFlag.cpp:5