diff options
Diffstat (limited to 'include/bh/thread.h')
| -rw-r--r-- | include/bh/thread.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/bh/thread.h b/include/bh/thread.h index 45a0e6e..3ec037f 100644 --- a/include/bh/thread.h +++ b/include/bh/thread.h @@ -16,7 +16,11 @@ typedef struct bh_thread_pool_s bh_thread_pool_t; bh_thread_t *bh_thread_new(bh_task_t *task); bh_thread_pool_t *bh_thread_pool_new(size_t size); + #elif defined(BHLIB_USE_WINTHREAD) +#include <windows.h> +#include <process.h> + typedef uintptr_t (__cdecl *bh_thread_begin_cb_t)(void *, unsigned, unsigned (__stdcall *)(void *), @@ -24,7 +28,7 @@ typedef uintptr_t (__cdecl *bh_thread_begin_cb_t)(void *, unsigned, unsigned *); -typedef uintptr_t (__cdecl *bh_thread_end_cb_t)(unsigned); +typedef void (__cdecl *bh_thread_end_cb_t)(unsigned); bh_thread_t *bh_thread_new_base(bh_task_t *task, bh_thread_begin_cb_t begin, |
