Include some headers in new multi-thread test
for usleep and gettimeofday.
This commit is contained in:
parent
11fc58fa13
commit
ce4eafb34f
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ void sleep_ms(unsigned n)
|
||||||
Sleep(n);
|
Sleep(n);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#define TF_TYPE(func, param) void* func(void *param)
|
#define TF_TYPE(func, param) void* func(void *param)
|
||||||
typedef TF_TYPE(ThreadFunc, x);
|
typedef TF_TYPE(ThreadFunc, x);
|
||||||
|
|
Loading…
Reference in a new issue