Subversion Repositories HelenOS

Rev

Rev 4527 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4527 Rev 4535
Line 72... Line 72...
72
 
72
 
73
typedef struct {
73
typedef struct {
74
    link_t waiters;
74
    link_t waiters;
75
} fibril_condvar_t;
75
} fibril_condvar_t;
76
 
76
 
-
 
77
#define FIBRIL_CONDVAR_INITIALIZE(name) \
-
 
78
    fibril_condvar_t name = { \
-
 
79
        .waiters = { \
-
 
80
            .next = &name.waiters, \
-
 
81
            .prev = &name.waiters, \
-
 
82
        } \
-
 
83
    }
-
 
84
 
77
extern void fibril_mutex_initialize(fibril_mutex_t *);
85
extern void fibril_mutex_initialize(fibril_mutex_t *);
78
extern void fibril_mutex_lock(fibril_mutex_t *);
86
extern void fibril_mutex_lock(fibril_mutex_t *);
79
extern bool fibril_mutex_trylock(fibril_mutex_t *);
87
extern bool fibril_mutex_trylock(fibril_mutex_t *);
80
extern void fibril_mutex_unlock(fibril_mutex_t *);
88
extern void fibril_mutex_unlock(fibril_mutex_t *);
81
 
89