Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1114 → Rev 1113

/uspace/trunk/libc/generic/futex.c
49,10 → 49,7
 
int futex_up(atomic_t *futex)
{
long val;
val = atomic_postinc(futex);
if (val < 0)
if (atomic_preinc(futex) == 0)
return __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->count);
return 0;