Eneboo - Documentación para desarrolladores
|
'defines' | |
#define | PTW32_MUTEX_TYPES |
#define | ITERATIONS 10000000L |
#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 * | trylockThread (void *arg) |
void * | oldTrylockThread (void *arg) |
void | runTest (char *testNameString, int mType) |
int | main (int argc, char *argv[]) |
Variables | |
pthread_mutex_t | mx |
old_mutex_t | ox |
pthread_mutexattr_t | ma |
struct _timeb | currSysTimeStart |
struct _timeb | currSysTimeStop |
long | durationMilliSecs |
long | overHeadMilliSecs = 0 |
#define GetDurationMilliSecs | ( | _TStart, | |
_TStop | |||
) |
((_TStop.time*1000+_TStop.millitm) \ - (_TStart.time*1000+_TStart.millitm))
#define ITERATIONS 10000000L |
#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* oldTrylockThread | ( | void * | arg | ) |
void runTest | ( | char * | testNameString, |
int | mType | ||
) |
void* trylockThread | ( | void * | arg | ) |
struct _timeb currSysTimeStart |
struct _timeb currSysTimeStop |
long durationMilliSecs |
long overHeadMilliSecs = 0 |