mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 14:52:13 +00:00
Stub __wait/__wake
This commit is contained in:
parent
19296cd280
commit
aba5aae061
@ -7,3 +7,8 @@ static inline struct pthread *__pthread_self(void) {
|
||||
#define CANCEL_REG_IP 16
|
||||
|
||||
#define MC_PC gregs[REG_EIP]
|
||||
|
||||
#define __wait __wait
|
||||
static inline void __wait(volatile int *addr, volatile int *waiters, int cnt, int priv) {}
|
||||
static inline void __wake(volatile void *addr, int cnt, int priv) {}
|
||||
static inline void __futexwait(volatile void *addr, int val, int priv) {}
|
||||
|
@ -150,6 +150,8 @@ void __vm_unlock(void);
|
||||
|
||||
int __timedwait(volatile int *, int, clockid_t, const struct timespec *, int);
|
||||
int __timedwait_cp(volatile int *, int, clockid_t, const struct timespec *, int);
|
||||
|
||||
#ifndef __wait
|
||||
void __wait(volatile int *, volatile int *, int, int);
|
||||
static inline void __wake(volatile void *addr, int cnt, int priv)
|
||||
{
|
||||
@ -164,6 +166,7 @@ static inline void __futexwait(volatile void *addr, int val, int priv)
|
||||
__syscall(SYS_futex, addr, FUTEX_WAIT|priv, val) != -ENOSYS ||
|
||||
__syscall(SYS_futex, addr, FUTEX_WAIT, val);
|
||||
}
|
||||
#endif
|
||||
|
||||
void __acquire_ptc(void);
|
||||
void __release_ptc(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user