Rev 1116 | Rev 1503 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1143 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #define __LIBC__FUTEX_H__ |
30 | #define __LIBC__FUTEX_H__ |
31 | 31 | ||
32 | #include <atomic.h> |
32 | #include <atomic.h> |
33 | #include <types.h> |
33 | #include <types.h> |
34 | 34 | ||
- | 35 | #define FUTEX_INITIALIZER {1} |
|
- | 36 | ||
35 | extern void futex_initialize(atomic_t *futex, int value); |
37 | extern void futex_initialize(atomic_t *futex, int value); |
36 | extern int futex_down(atomic_t *futex); |
38 | extern int futex_down(atomic_t *futex); |
37 | extern int futex_trydown(atomic_t *futex); |
39 | extern int futex_trydown(atomic_t *futex); |
38 | extern int futex_down_timeout(atomic_t *futex, uint32_t usec, int trydown); |
40 | extern int futex_down_timeout(atomic_t *futex, uint32_t usec, int trydown); |
39 | extern int futex_up(atomic_t *futex); |
41 | extern int futex_up(atomic_t *futex); |