From 62a9b7b14f1cefcf3c8c66ba481d322937dc849e Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Sat, 19 Jun 2021 11:03:52 +0300 Subject: ........S. [ZBXNEXT-6674] added processes exit priorities to handle process dependency from one to another --- include/threads.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/threads.h') 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 *) -- cgit v1.2.3