summaryrefslogtreecommitdiff
path: root/test/include/test/thd.h
blob: 848c5271d5d4cadf5e2f295a3510b4c7a9ec9662 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Abstraction layer for threading in tests. */
#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);
bool thd_has_setname(void);
void thd_setname(const char *name);