projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix AS-safety of close when aio is in use and fd map is expanded
[musl]
/
include
/
threads.h
diff --git
a/include/threads.h
b/include/threads.h
index
0e5836c
..
52ec310
100644
(file)
--- 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);
thrd_t thrd_current(void);
int thrd_equal(thrd_t, thrd_t);
+#ifndef __cplusplus
#define thrd_equal(A, B) ((A) == (B))
#define thrd_equal(A, B) ((A) == (B))
+#endif
void call_once(once_flag *, void (*)(void));
void call_once(once_flag *, void (*)(void));
@@
-73,11
+75,17
@@
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);
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);
int tss_set(tss_t, void *);
void *tss_get(tss_t);
+#if _REDIR_TIME64
+__REDIR(thrd_sleep, __thrd_sleep_time64);
+__REDIR(mtx_timedlock, __mtx_timedlock_time64);
+__REDIR(cnd_timedwait, __cnd_timedwait_time64);
+#endif
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif