X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fthreads.h;h=8122b3b1df5e5a931b98eb688d227800934a126b;hb=48be5b6313d7b827acf555769e93b389fa9f6307;hp=0e5836c114e976140b1e3bc22be3f94d80c5cae4;hpb=b7cf71a190813590860af25b32532b6c360ac502;p=musl diff --git a/include/threads.h b/include/threads.h index 0e5836c1..8122b3b1 100644 --- a/include/threads.h +++ b/include/threads.h @@ -51,7 +51,9 @@ void thrd_yield(void); thrd_t thrd_current(void); int thrd_equal(thrd_t, thrd_t); +#ifndef __cplusplus #define thrd_equal(A, B) ((A) == (B)) +#endif void call_once(once_flag *, void (*)(void)); @@ -73,7 +75,7 @@ int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *_ int cnd_wait(cnd_t *, mtx_t *); int tss_create(tss_t *, tss_dtor_t); -void tss_delete(tss_t key); +void tss_delete(tss_t); int tss_set(tss_t, void *); void *tss_get(tss_t);