#include <mutex>
Go to the source code of this file.
◆ BOOST_CHECK_EQUAL_TS
#define BOOST_CHECK_EQUAL_TS |
( |
|
a, |
|
|
|
b |
|
) |
| |
Value: if((a) != (b)) { \
BOOST_CHECK_EQUAL(a, b); \
}
std::mutex boostCheckMutex
Definition at line 16 of file threadsafe_unit_test.hpp.
◆ BOOST_CHECK_TIMEOUT
#define BOOST_CHECK_TIMEOUT |
( |
|
condition | ) |
|
Value: { \
bool isOk = false; \
for(size_t i = 0; i < 1000; ++i) { \
if(condition) { \
isOk = true; \
break; \
} \
usleep(10000); \
} \
if(!isOk)
BOOST_ERROR_TS(
"Check with timeout on condition failed: " #condition); \
}
#define BOOST_ERROR_TS(message)
Definition at line 28 of file threadsafe_unit_test.hpp.
◆ BOOST_CHECK_TS
#define BOOST_CHECK_TS |
( |
|
condition | ) |
|
◆ BOOST_ERROR_TS
#define BOOST_ERROR_TS |
( |
|
message | ) |
|
◆ boostCheckMutex
std::mutex boostCheckMutex |