summaryrefslogblamecommitdiff
path: root/src/thread/__wake.c
blob: 8fd0599cdb0d9eb7b859e75b1919101f845fb05f (plain) (tree)
1
2
3
4
5
6
7
8





                                                  
                                                                 
 
#include "pthread_impl.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);
}