Rev 1111 | Rev 1143 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1111 | Rev 1116 | ||
|---|---|---|---|
| Line 28... | Line 28... | ||
| 28 | 28 | ||
| 29 | #ifndef __LIBC__FUTEX_H__ |
29 | #ifndef __LIBC__FUTEX_H__ |
| 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 | 34 | ||
| 34 | extern void futex_initialize(atomic_t *futex, int value); |
35 | extern void futex_initialize(atomic_t *futex, int value); |
| 35 | extern int futex_down(atomic_t *futex); |
36 | extern int futex_down(atomic_t *futex); |
| - | 37 | extern int futex_trydown(atomic_t *futex); |
|
| - | 38 | extern int futex_down_timeout(atomic_t *futex, uint32_t usec, int trydown); |
|
| 36 | extern int futex_up(atomic_t *futex); |
39 | extern int futex_up(atomic_t *futex); |
| 37 | 40 | ||
| 38 | #endif |
41 | #endif |