From dc7628a8eec281add045eb123ae06dbc94c1b950 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Feb 2012 01:22:41 +0000 Subject: Remove unused (and difficult to port) zix_thread_cancel. git-svn-id: http://svn.drobilla.net/zix/trunk@57 df6676b4-ccc9-40e5-b5d6-7c4628a128e3 --- zix/thread.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/zix/thread.h b/zix/thread.h index 05d7bdb..b1fcf97 100644 --- a/zix/thread.h +++ b/zix/thread.h @@ -39,6 +39,9 @@ typedef pthread_t ZixThread; /** Initialize @c thread to a new thread. + + The thread will immediately be launched, calling @c function with @c arg + as the only parameter. */ static inline ZixStatus zix_thread_create(ZixThread* thread, @@ -46,15 +49,6 @@ zix_thread_create(ZixThread* thread, void* (*function)(void*), void* arg); -/** - Cancel @c thread. - - This function sends a cancellation request, but does not wait until the - thread actually exists. Use zix_thread_join() for that. -*/ -static inline ZixStatus -zix_thread_cancel(ZixThread thread); - /** Join @c thread (block until @c thread exits). */ @@ -87,12 +81,6 @@ zix_thread_create(ZixThread* thread, return ZIX_STATUS_SUCCESS; } -static inline ZixStatus -zix_thread_cancel(ZixThread thread) -{ - return pthread_cancel(thread) ? ZIX_STATUS_ERROR : ZIX_STATUS_SUCCESS; -} - static inline ZixStatus zix_thread_join(ZixThread thread, void** retval) { -- cgit v1.2.1