231
301
# define gl_rwlock_initializer \
232
302
{ PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 }
233
303
# define gl_rwlock_init(NAME) \
235
310
# define gl_rwlock_rdlock(NAME) \
237
317
# define gl_rwlock_wrlock(NAME) \
239
324
# define gl_rwlock_unlock(NAME) \
241
331
# define gl_rwlock_destroy(NAME) \
243
338
extern void glthread_rwlock_init (gl_rwlock_t *lock);
244
339
extern void glthread_rwlock_rdlock (gl_rwlock_t *lock);
245
340
extern void glthread_rwlock_wrlock (gl_rwlock_t *lock);