summaryrefslogtreecommitdiffstats
path: root/libdimension/threads.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-08-19 00:05:22 -0600
committerTavian Barnes <tavianator@gmail.com>2011-08-19 00:05:22 -0600
commitc0284b69fe0ee82d1f604a1b6f0511b4f129b919 (patch)
tree921fd2dc329cbf01383cc3cdd4e30e6954318775 /libdimension/threads.h
parent8ba39e9ea0ccfb08edaa9179e4893acb6c478aad (diff)
downloaddimension-c0284b69fe0ee82d1f604a1b6f0511b4f129b919.tar.xz
Support thread cancelation, and handle ^C in the client.
Diffstat (limited to 'libdimension/threads.h')
-rw-r--r--libdimension/threads.h8
1 files changed, 7 insertions, 1 deletions
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);