Changeset 4db6eaf in mainline for uspace/lib/libc/include/futex.h


Ignore:
Timestamp:
2008-01-06T14:05:15Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10d6b858
Parents:
b3c38750
Message:

Fix type in declaration of VFS node rwlock.
Introduce a dedicated type for futexes. Make the existing futex code use this
newly introduced type and fix formatting in futex.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/futex.h

    rb3c38750 r4db6eaf  
    4141#define FUTEX_INITIALIZER     {1}
    4242
    43 extern void futex_initialize(atomic_t *futex, int value);
    44 extern int futex_down(atomic_t *futex);
    45 extern int futex_trydown(atomic_t *futex);
    46 extern int futex_down_timeout(atomic_t *futex, uint32_t usec, int flags);
    47 extern int futex_up(atomic_t *futex);
     43typedef atomic_t futex_t;
     44
     45extern void futex_initialize(futex_t *futex, int value);
     46extern int futex_down(futex_t *futex);
     47extern int futex_trydown(futex_t *futex);
     48extern int futex_down_timeout(futex_t *futex, uint32_t usec, int flags);
     49extern int futex_up(futex_t *futex);
    4850
    4951#endif
Note: See TracChangeset for help on using the changeset viewer.