Changes in uspace/lib/c/include/fibril_synch.h [d5409da:bc56f30] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril_synch.h
rd5409da rbc56f30 153 153 extern void __fibril_synch_fini(void); 154 154 155 /** Initialize fibril mutex. 156 * 157 * Kept as in-line to allow constexpr marker for C++ library where this 158 * is used by C++ mutex type (list initialization are two assignments 159 * so it is actually reasonable to have this inlined). 160 */ 161 static inline __CONSTEXPR void fibril_mutex_initialize(fibril_mutex_t *fm) 162 { 163 fm->oi.owned_by = NULL; 164 fm->counter = 1; 165 list_initialize(&fm->waiters); 166 } 167 155 extern void fibril_mutex_initialize(fibril_mutex_t *); 168 156 extern void fibril_mutex_lock(fibril_mutex_t *); 169 157 extern bool fibril_mutex_trylock(fibril_mutex_t *);
Note:
See TracChangeset
for help on using the changeset viewer.