Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Grigorjev <git-no-reply@zabbix.com>2007-06-28 18:35:44 +0400
committerEugene Grigorjev <git-no-reply@zabbix.com>2007-06-28 18:35:44 +0400
commit5f32658e8edda9b7e394001590478ee7f8d1ffcc (patch)
tree9b01e2aaf88d9d7b6db6384888c6f5ad1c38b04e /include/threads.h
parent1a42b2b50626a719a70183fca039d8b47a314ed4 (diff)
- improoved UserParameters for Win32 (Eugene)
Diffstat (limited to 'include/threads.h')
-rw-r--r--include/threads.h4
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);