From f9b529b75982902c9b31ee59fe73e2c56b8ba237 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 5 Nov 2017 16:14:32 +0100 Subject: thread: Add 'thread_alive' helper --- src/thread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/thread.h') diff --git a/src/thread.h b/src/thread.h index bd53c5b..11e789a 100644 --- a/src/thread.h +++ b/src/thread.h @@ -46,6 +46,7 @@ typedef void* (*thread_func_t)(void* data); int thread_new(thread_t* thread, thread_func_t thread_func, void* data); void thread_free(thread_t thread); void thread_join(thread_t thread); +int thread_alive(thread_t thread); void mutex_init(mutex_t* mutex); void mutex_destroy(mutex_t* mutex); -- cgit v1.1-32-gdbae