My Project: dynamics.mod/NewtonDynamics/source/pthreads.2/tests/spin4.c File Reference

My Project

Macros | Functions | Variables
spin4.c File Reference
`#include "test.h"`
`#include <sys/timeb.h>`

## Macros

#define | GetDurationMilliSecs(_TStart, _TStop)

## Functions

void * | func (void *arg)
int | main ()

## Variables

pthread_spinlock_t | lock = PTHREAD_SPINLOCK_INITIALIZER
PTW32_STRUCT_TIMEB | currSysTimeStart
PTW32_STRUCT_TIMEB | currSysTimeStop

## Macro Definition Documentation

## § GetDurationMilliSecs

#define GetDurationMilliSecs | ( |  | _TStart,
|  |  | _TStop
| ) |  |

Value:
((_TStop.time*1000+_TStop.millitm) \
- (_TStart.time*1000+_TStart.millitm))

## Function Documentation

## § func()

void* func | ( | void * | arg | ) |

## § main()

int main | ( |  | ) |

## Variable Documentation

## § currSysTimeStart

PTW32_STRUCT_TIMEB currSysTimeStart

## § currSysTimeStop

PTW32_STRUCT_TIMEB currSysTimeStop

## § lock

pthread_spinlock_t lock = PTHREAD_SPINLOCK_INITIALIZER