diff options
Diffstat (limited to 'include/threads.h')
-rw-r--r-- | include/threads.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/threads.h b/include/threads.h index 4f0e09c7be2..89f2bf53529 100644 --- a/include/threads.h +++ b/include/threads.h @@ -48,7 +48,7 @@ #else /* not _WINDOWS */ int zbx_fork(void); - int zbx_child_fork(void); + void zbx_child_fork(pid_t *pid); #define ZBX_THREAD_ERROR -1 @@ -84,8 +84,8 @@ typedef struct } zbx_thread_args_t; -ZBX_THREAD_HANDLE zbx_thread_start(ZBX_THREAD_ENTRY_POINTER(handler), zbx_thread_args_t *thread_args); -int zbx_thread_wait(ZBX_THREAD_HANDLE thread); +void zbx_thread_start(ZBX_THREAD_ENTRY_POINTER(handler), zbx_thread_args_t *thread_args, ZBX_THREAD_HANDLE *thread); +int zbx_thread_wait(ZBX_THREAD_HANDLE thread); void zbx_threads_wait(ZBX_THREAD_HANDLE *threads, int threads_num); /* zbx_thread_exit(status) -- declared as define !!! */ long int zbx_get_thread_id(void); |