You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
219 B

#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);
}