mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-24 17:17:51 -05:00
10 lines
224 B
C
10 lines
224 B
C
/* 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);
|