aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-10 12:10:58 -0800
committerChris Robinson <[email protected]>2018-03-10 12:10:58 -0800
commitdac93794491a9219ebdc6815244db76244f45b09 (patch)
tree2e821c0a7b68c594c0f084c8b1033bdb1a8b554a /common/threads.h
parenta6ddeaf5f190a3640f816a4767ffa8b10fbd1b5d (diff)
Add methods to clean up althrd and altss data
Diffstat (limited to 'common/threads.h')
-rw-r--r--common/threads.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/threads.h b/common/threads.h
index 9a6fe1f7..b0bebd8d 100644
--- a/common/threads.h
+++ b/common/threads.h
@@ -65,6 +65,9 @@ typedef LONG alonce_flag;
int althrd_sleep(const struct timespec *ts, struct timespec *rem);
void alcall_once(alonce_flag *once, void (*callback)(void));
+void althrd_deinit(void);
+void althrd_thread_detach(void);
+
inline althrd_t althrd_current(void)
{
@@ -216,6 +219,10 @@ inline void alcall_once(alonce_flag *once, void (*callback)(void))
pthread_once(once, callback);
}
+
+inline void althrd_deinit(void) { }
+inline void althrd_thread_detach(void) { }
+
#endif