2015-10-06 16:18:30 +02:00
|
|
|
/* Abstraction layer for threading in tests. */
|
2014-06-20 14:59:18 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
typedef HANDLE thd_t;
|
|
|
|
#else
|
|
|
|
typedef pthread_t thd_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void thd_create(thd_t *thd, void *(*proc)(void *), void *arg);
|
|
|
|
void thd_join(thd_t thd, void **ret);
|