diff options
author | David Robillard <d@drobilla.net> | 2012-02-01 01:22:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-01 01:22:41 +0000 |
commit | dc7628a8eec281add045eb123ae06dbc94c1b950 (patch) | |
tree | 12fec0841e77dd498e31fc43f450105b285df6bd | |
parent | b49daff8823524d7fe341e83fbb4177e5e4a47e9 (diff) | |
download | zix-dc7628a8eec281add045eb123ae06dbc94c1b950.tar.gz zix-dc7628a8eec281add045eb123ae06dbc94c1b950.tar.bz2 zix-dc7628a8eec281add045eb123ae06dbc94c1b950.zip |
Remove unused (and difficult to port) zix_thread_cancel.
git-svn-id: http://svn.drobilla.net/zix/trunk@57 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
-rw-r--r-- | zix/thread.h | 18 |
1 files 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, @@ -47,15 +50,6 @@ zix_thread_create(ZixThread* thread, 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). */ static inline ZixStatus @@ -88,12 +82,6 @@ zix_thread_create(ZixThread* thread, } 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) { return pthread_join(thread, retval) |