C:/rwlock/system_abstraction.h File Reference

#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)


Function Documentation

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]


Generated on Wed Mar 19 14:59:59 2008 for rwlock by  doxygen 1.5.5