4#include "hashx_thread.h"
6hashx_thread hashx_thread_create(hashx_thread_func* func,
void* args) {
8 return CreateThread(NULL, 0, func, args, 0, NULL);
11 if (pthread_create(&thread, NULL, func, args) != 0)
19void hashx_thread_join(hashx_thread thread) {
21 WaitForSingleObject(thread, INFINITE);
25 pthread_join(thread, &retval);