diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-06-19 14:40:32 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-06-19 14:40:32 +0300 |
commit | 7ac57110533c3a6ab546afc30180f1e208fab4f6 (patch) | |
tree | cd708e736309086f2b2c81fe2b5f9d645233026a /include | |
parent | dea9781bc443251b910f73e9795c85af9fb1f165 (diff) |
...G...... [ZBXNEXT-6674] fixed compilation on Windows
Diffstat (limited to 'include')
-rw-r--r-- | include/threads.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/threads.h b/include/threads.h index a926cd8c9d3..57c5c7890dc 100644 --- a/include/threads.h +++ b/include/threads.h @@ -26,10 +26,12 @@ /* the ZBXEndThread function is implemented in service.c file */ void CALLBACK ZBXEndThread(ULONG_PTR dwParam); - #define ZBX_THREAD_ERROR 0 + #define ZBX_THREAD_ERROR 0 - #define ZBX_THREAD_HANDLE HANDLE - #define ZBX_THREAD_HANDLE_NULL NULL + #define ZBX_THREAD_HANDLE HANDLE + #define ZBX_THREAD_HANDLE_NULL NULL + + #define ZBX_THREAD_PRIORITY_NONE 0 #define ZBX_THREAD_ENTRY_POINTER(pointer_name) \ unsigned (__stdcall *pointer_name)(void *) @@ -50,10 +52,10 @@ int zbx_fork(void); void zbx_child_fork(pid_t *pid); - #define ZBX_THREAD_ERROR -1 + #define ZBX_THREAD_ERROR -1 - #define ZBX_THREAD_HANDLE pid_t - #define ZBX_THREAD_HANDLE_NULL 0 + #define ZBX_THREAD_HANDLE pid_t + #define ZBX_THREAD_HANDLE_NULL 0 #define ZBX_THREAD_PRIORITY_NONE 0 #define ZBX_THREAD_PRIORITY_FIRST 1 |