Rev 4526 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4526 | Rev 4527 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | .prev = &name.waiters, \ |
68 | .prev = &name.waiters, \ |
69 | .next = &name.waiters, \ |
69 | .next = &name.waiters, \ |
70 | } \ |
70 | } \ |
71 | } |
71 | } |
72 | 72 | ||
- | 73 | typedef struct { |
|
- | 74 | link_t waiters; |
|
- | 75 | } fibril_condvar_t; |
|
- | 76 | ||
73 | extern void fibril_mutex_initialize(fibril_mutex_t *); |
77 | extern void fibril_mutex_initialize(fibril_mutex_t *); |
74 | extern void fibril_mutex_lock(fibril_mutex_t *); |
78 | extern void fibril_mutex_lock(fibril_mutex_t *); |
75 | extern bool fibril_mutex_trylock(fibril_mutex_t *); |
79 | extern bool fibril_mutex_trylock(fibril_mutex_t *); |
76 | extern void fibril_mutex_unlock(fibril_mutex_t *); |
80 | extern void fibril_mutex_unlock(fibril_mutex_t *); |
77 | 81 | ||
Line 79... | Line 83... | ||
79 | extern void fibril_rwlock_read_lock(fibril_rwlock_t *); |
83 | extern void fibril_rwlock_read_lock(fibril_rwlock_t *); |
80 | extern void fibril_rwlock_write_lock(fibril_rwlock_t *); |
84 | extern void fibril_rwlock_write_lock(fibril_rwlock_t *); |
81 | extern void fibril_rwlock_read_unlock(fibril_rwlock_t *); |
85 | extern void fibril_rwlock_read_unlock(fibril_rwlock_t *); |
82 | extern void fibril_rwlock_write_unlock(fibril_rwlock_t *); |
86 | extern void fibril_rwlock_write_unlock(fibril_rwlock_t *); |
83 | 87 | ||
- | 88 | extern void fibril_condvar_initialize(fibril_condvar_t *); |
|
- | 89 | extern void fibril_condvar_wait(fibril_condvar_t *, fibril_mutex_t *); |
|
- | 90 | extern void fibril_condvar_signal(fibril_condvar_t *); |
|
- | 91 | extern void fibril_condvar_broadcast(fibril_condvar_t *); |
|
- | 92 | ||
84 | #endif |
93 | #endif |
85 | 94 | ||
86 | /** @} |
95 | /** @} |
87 | */ |
96 | */ |