Public Member Functions | |
TestThreading () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testStartStopWait () |
void | testAtomicSemaphoreThread () |
void | testTLS () |
Public Member Functions inherited from TestBase | |
bool | testModule (IGameDef *gamedef) |
std::string | getTestTempDirectory () |
std::string | getTestTempFile () |
void | runTest (const char *name, std::function< void()> &&test) |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testAtomicSemaphoreThread(), testStartStopWait(), and testTLS().
void TestThreading::testAtomicSemaphoreThread | ( | ) |
References Semaphore::post(), and UASSERT.
Referenced by runTests().
void TestThreading::testStartStopWait | ( | ) |
References Thread::getReturnValue(), Thread::isCurrentThread(), Thread::isRunning(), sleep_ms, Thread::start(), Thread::stop(), UASSERT, and Thread::wait().
Referenced by runTests().
void TestThreading::testTLS | ( | ) |
References g_tls_broken, Thread::start(), Thread::stop(), UASSERT, and Thread::wait().
Referenced by runTests().