From c0284b69fe0ee82d1f604a1b6f0511b4f129b919 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 19 Aug 2011 00:05:22 -0600 Subject: Support thread cancelation, and handle ^C in the client. --- libdimension/threads.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libdimension/threads.h') diff --git a/libdimension/threads.h b/libdimension/threads.h index 229acb9..ba1bb43 100644 --- a/libdimension/threads.h +++ b/libdimension/threads.h @@ -187,7 +187,13 @@ DMNSN_INTERNAL void dmnsn_key_create(pthread_key_t *key, DMNSN_INTERNAL void dmnsn_setspecific(pthread_key_t key, const void *value); /** - * Destroy a thread-local storage key, warning out on failure. + * Destroy a thread-local storage key, warning on failure. * @param[out] key The key to destroy. */ DMNSN_INTERNAL void dmnsn_key_delete(pthread_key_t key); + +/** + * Join a thread, bailing out on failure. + * @param[in,out] thread The thread to join. + */ +DMNSN_INTERNAL void dmnsn_join_thread(pthread_t thread, void **retval); -- cgit v1.2.3