#include <unistd.h>
#include <pthread.h>
#include <sched.h>
Go to the source code of this file.
Classes | |
class | SystemLock |
class | SystemThread |
Functions | |
void | SystemSleep (unsigned millisec=0) |
void | thread_yield (void) |
void SystemSleep | ( | unsigned | millisec = 0 |
) | [inline] |
Definition at line 108 of file system_abstraction.h.
Referenced by RWLockTester::run_test(), and RWLockTester::validate().
00109 { 00110 struct timeval tv; 00111 tv.tv_sec = millisec / 1000; 00112 tv.tv_usec = (millisec % 1000) * 1000; 00113 select(0, NULL, NULL, NULL, &tv); 00114 };
void thread_yield | ( | void | ) | [inline] |
Definition at line 116 of file system_abstraction.h.
Referenced by SimpleRWLock::enter_read(), SG_RWLock::enter_read(), SimpleRWLock::enter_write(), SG_RWLock::enter_write(), NonblockingRWLock::enter_write(), RWLockLoopTestImpl< RWL >::read_test_loop(), RWLockLoopTestImpl< RWL >::run_mixed(), RWLockTester::run_test(), NonblockingRWLockIOCompl::take_writer_lock(), RWLockTester::validate(), RWLockTester::waitForStart(), RWLockLoopTestImpl< RWL >::write_test_loop(), EvgRWLock2::yield(), SharedCounterRWLock2::yield(), SharedCounterRWLock::yield(), and BASELINERWLock::yield().