diff options
Diffstat (limited to 'include/threads.h')
-rw-r--r-- | include/threads.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/threads.h b/include/threads.h index 982382a0b97..9d574a171d5 100644 --- a/include/threads.h +++ b/include/threads.h @@ -40,6 +40,8 @@ #define zbx_sleep(sec) Sleep(((DWORD)(sec))*((DWORD)1000)) + #define zbx_thread_kill(h) TerminateThread(h, SUCCEED); + #else /* not _WINDOWS */ int zbx_fork(); @@ -60,6 +62,8 @@ #define zbx_sleep(sec) sleep((sec)) + #define zbx_thread_kill(h) kill(h,SIGTERM); + #endif /* _WINDOWS */ ZBX_THREAD_HANDLE zbx_thread_start(ZBX_THREAD_ENTRY_POINTER(handler), void *args); |