Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/fibril_synch.h

    re9460aa r63f8966  
    4747} fibril_mutex_t;
    4848
    49 #define FIBRIL_MUTEX_INITIALIZER(name) \
    50         { \
     49#define FIBRIL_MUTEX_INITIALIZE(name) \
     50        fibril_mutex_t name = { \
    5151                .counter = 1, \
    5252                .waiters = { \
     
    5555                } \
    5656        }
    57        
    58 #define FIBRIL_MUTEX_INITIALIZE(name) \
    59         fibril_mutex_t name = FIBRIL_MUTEX_INITIALIZER(name)
    6057
    6158typedef struct {
     
    6562} fibril_rwlock_t;
    6663
    67 #define FIBRIL_RWLOCK_INITIALIZER(name) \
    68         { \
     64#define FIBRIL_RWLOCK_INITIALIZE(name) \
     65        fibril_rwlock_t name = { \
    6966                .readers = 0, \
    7067                .writers = 0, \
     
    7572        }
    7673
    77 #define FIBRIL_RWLOCK_INITIALIZE(name) \
    78         fibril_rwlock_t name = FIBRIL_RWLOCK_INITIALIZER(name)
    79 
    8074typedef struct {
    8175        link_t waiters;
    8276} fibril_condvar_t;
    8377
    84 #define FIBRIL_CONDVAR_INITIALIZER(name) \
    85         { \
     78#define FIBRIL_CONDVAR_INITIALIZE(name) \
     79        fibril_condvar_t name = { \
    8680                .waiters = { \
    8781                        .next = &name.waiters, \
     
    8983                } \
    9084        }
    91 
    92 #define FIBRIL_CONDVAR_INITIALIZE(name) \
    93         fibril_condvar_t name = FIBRIL_CONDVAR_INITIALIZER(name)
    9485
    9586extern void fibril_mutex_initialize(fibril_mutex_t *);
Note: See TracChangeset for help on using the changeset viewer.