diff options
author | Chris Robinson <[email protected]> | 2018-11-17 06:07:04 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-17 06:07:04 -0800 |
commit | 7b537c795bd174b4b02418a37b377b4da5cfe266 (patch) | |
tree | b0e7485d4ae66518194bd03128f56ffda1c199ec /common/threads.h | |
parent | 1fae8c16a8c0634ffa44b4a2e25f3be4899ea7e2 (diff) |
Don't pass the current thread to althrd_setname
Diffstat (limited to 'common/threads.h')
-rw-r--r-- | common/threads.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/common/threads.h b/common/threads.h index 9abb22f2..0b53c38f 100644 --- a/common/threads.h +++ b/common/threads.h @@ -42,18 +42,6 @@ typedef CRITICAL_SECTION almtx_t; typedef HANDLE alsem_t; -void althrd_deinit(void); - -inline althrd_t althrd_current(void) -{ - return GetCurrentThreadId(); -} - -inline int althrd_equal(althrd_t thr0, althrd_t thr1) -{ - return thr0 == thr1; -} - inline void althrd_yield(void) { SwitchToThread(); @@ -94,18 +82,6 @@ typedef sem_t alsem_t; #endif /* __APPLE__ */ -void althrd_deinit(void); - -inline althrd_t althrd_current(void) -{ - return pthread_self(); -} - -inline int althrd_equal(althrd_t thr0, althrd_t thr1) -{ - return pthread_equal(thr0, thr1); -} - inline void althrd_yield(void) { sched_yield(); @@ -132,7 +108,7 @@ inline int almtx_unlock(almtx_t *mtx) int althrd_create(althrd_t *thr, althrd_start_t func, void *arg); int althrd_detach(althrd_t thr); int althrd_join(althrd_t thr, int *res); -void althrd_setname(althrd_t thr, const char *name); +void althrd_setname(const char *name); int almtx_init(almtx_t *mtx, int type); void almtx_destroy(almtx_t *mtx); |