Changeset 77bd004 in mainline


Ignore:
Timestamp:
2006-03-23T11:01:03Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17242c6e
Parents:
29a9f62
Message:

Fix futexes to correctly wake sleeping threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/futex.c

    r29a9f62 r77bd004  
    5050int futex_up(atomic_t *futex)
    5151{
    52         if (atomic_preinc(futex) == 0)
     52        long val;
     53       
     54        val = atomic_postinc(futex);
     55        if (val < 0)
    5356                return __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->count);
    5457               
Note: See TracChangeset for help on using the changeset viewer.