Rev 2541 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2541 | Rev 2682 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | #include <atomic.h> |
38 | #include <atomic.h> |
| 39 | #include <sys/types.h> |
39 | #include <sys/types.h> |
| 40 | 40 | ||
| 41 | #define FUTEX_INITIALIZER {1} |
41 | #define FUTEX_INITIALIZER {1} |
| 42 | 42 | ||
| - | 43 | typedef atomic_t futex_t; |
|
| - | 44 | ||
| 43 | extern void futex_initialize(atomic_t *futex, int value); |
45 | extern void futex_initialize(futex_t *futex, int value); |
| 44 | extern int futex_down(atomic_t *futex); |
46 | extern int futex_down(futex_t *futex); |
| 45 | extern int futex_trydown(atomic_t *futex); |
47 | extern int futex_trydown(futex_t *futex); |
| 46 | extern int futex_down_timeout(atomic_t *futex, uint32_t usec, int flags); |
48 | extern int futex_down_timeout(futex_t *futex, uint32_t usec, int flags); |
| 47 | extern int futex_up(atomic_t *futex); |
49 | extern int futex_up(futex_t *futex); |
| 48 | 50 | ||
| 49 | #endif |
51 | #endif |
| 50 | 52 | ||
| 51 | /** @} |
53 | /** @} |
| 52 | */ |
54 | */ |