Changes in uspace/lib/c/include/fibril_synch.h [e9460aa:63f8966] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril_synch.h
re9460aa r63f8966 47 47 } fibril_mutex_t; 48 48 49 #define FIBRIL_MUTEX_INITIALIZE R(name) \50 {\49 #define FIBRIL_MUTEX_INITIALIZE(name) \ 50 fibril_mutex_t name = { \ 51 51 .counter = 1, \ 52 52 .waiters = { \ … … 55 55 } \ 56 56 } 57 58 #define FIBRIL_MUTEX_INITIALIZE(name) \59 fibril_mutex_t name = FIBRIL_MUTEX_INITIALIZER(name)60 57 61 58 typedef struct { … … 65 62 } fibril_rwlock_t; 66 63 67 #define FIBRIL_RWLOCK_INITIALIZE R(name) \68 { \64 #define FIBRIL_RWLOCK_INITIALIZE(name) \ 65 fibril_rwlock_t name = { \ 69 66 .readers = 0, \ 70 67 .writers = 0, \ … … 75 72 } 76 73 77 #define FIBRIL_RWLOCK_INITIALIZE(name) \78 fibril_rwlock_t name = FIBRIL_RWLOCK_INITIALIZER(name)79 80 74 typedef struct { 81 75 link_t waiters; 82 76 } fibril_condvar_t; 83 77 84 #define FIBRIL_CONDVAR_INITIALIZE R(name) \85 { \78 #define FIBRIL_CONDVAR_INITIALIZE(name) \ 79 fibril_condvar_t name = { \ 86 80 .waiters = { \ 87 81 .next = &name.waiters, \ … … 89 83 } \ 90 84 } 91 92 #define FIBRIL_CONDVAR_INITIALIZE(name) \93 fibril_condvar_t name = FIBRIL_CONDVAR_INITIALIZER(name)94 85 95 86 extern void fibril_mutex_initialize(fibril_mutex_t *);
Note:
See TracChangeset
for help on using the changeset viewer.