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:
authorVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2021-06-19 11:03:52 +0300
committerVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2021-06-19 11:03:52 +0300
commit62a9b7b14f1cefcf3c8c66ba481d322937dc849e (patch)
tree33301c05538bb294c716b7a0d84326f4575bc120 /include/threads.h
parentdfde3f52cd4cc7b96326e69c5935d2c5db4a6711 (diff)
........S. [ZBXNEXT-6674] added processes exit priorities to handle process dependency from one to another
Diffstat (limited to 'include/threads.h')
-rw-r--r--include/threads.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/threads.h b/include/threads.h
index 00edd79ac7b..a926cd8c9d3 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -31,8 +31,6 @@
#define ZBX_THREAD_HANDLE HANDLE
#define ZBX_THREAD_HANDLE_NULL NULL
- #define ZBX_THREAD_WAIT_EXIT 1
-
#define ZBX_THREAD_ENTRY_POINTER(pointer_name) \
unsigned (__stdcall *pointer_name)(void *)
@@ -57,7 +55,10 @@
#define ZBX_THREAD_HANDLE pid_t
#define ZBX_THREAD_HANDLE_NULL 0
- #define ZBX_THREAD_WAIT_EXIT 1
+ #define ZBX_THREAD_PRIORITY_NONE 0
+ #define ZBX_THREAD_PRIORITY_FIRST 1
+ #define ZBX_THREAD_PRIORITY_SECOND 2
+ #define ZBX_THREAD_PRIORITY_COUNT 3
#define ZBX_THREAD_ENTRY_POINTER(pointer_name) \
unsigned (* pointer_name)(void *)