Eneboo - Documentación para desarrolladores
|
'defines' | |
#define | PTW32_MUTEX_TYPES |
#define | ITERATIONS 100000L |
#define | GetDurationMilliSecs(_TStart, _TStop) |
#define | TESTSTART { int i, j = 0, k = 0; _ftime(&currSysTimeStart); for (i = 0; i < ITERATIONS; i++) { j++; |
#define | TESTSTOP }; _ftime(&currSysTimeStop); if (j + k == i) j++; } |
Funciones | |
void * | overheadThread (void *arg) |
void * | oldThread (void *arg) |
void * | workerThread (void *arg) |
void * | CSThread (void *arg) |
void | runTest (char *testNameString, int mType) |
int | main (int argc, char *argv[]) |
Variables | |
pthread_mutex_t | gate1 |
pthread_mutex_t | gate2 |
old_mutex_t | ox1 |
old_mutex_t | ox2 |
CRITICAL_SECTION | cs1 |
CRITICAL_SECTION | cs2 |
pthread_mutexattr_t | ma |
long | durationMilliSecs |
long | overHeadMilliSecs = 0 |
struct _timeb | currSysTimeStart |
struct _timeb | currSysTimeStop |
pthread_t | worker |
int | running = 0 |
#define GetDurationMilliSecs | ( | _TStart, | |
_TStop | |||
) |
((_TStop.time*1000+_TStop.millitm) \ - (_TStart.time*1000+_TStart.millitm))
#define ITERATIONS 100000L |
#define PTW32_MUTEX_TYPES |
#define TESTSTART { int i, j = 0, k = 0; _ftime(&currSysTimeStart); for (i = 0; i < ITERATIONS; i++) { j++; |
#define TESTSTOP }; _ftime(&currSysTimeStop); if (j + k == i) j++; } |
void* CSThread | ( | void * | arg | ) |
void* oldThread | ( | void * | arg | ) |
void* overheadThread | ( | void * | arg | ) |
void runTest | ( | char * | testNameString, |
int | mType | ||
) |
void* workerThread | ( | void * | arg | ) |
CRITICAL_SECTION cs1 |
CRITICAL_SECTION cs2 |
struct _timeb currSysTimeStart |
struct _timeb currSysTimeStop |
long durationMilliSecs |
long overHeadMilliSecs = 0 |