blob: d8bf70f7b32e7c7704b3321eb1742c27d06f9152 (
plain) (
tree)
|
|
#include "pthread_impl.h"
#include <limits.h>
void __wake(volatile int *addr, int cnt, int priv)
{
if (priv) priv = 128; priv=0;
if (cnt<0) cnt = INT_MAX;
__syscall(SYS_futex, (long)addr, FUTEX_WAKE | priv, cnt);
}
|