usermode/library/mtm/src/sysdeps/linux/rwlock.c File Reference

Reader-writer lock implementation. More...

#include "rwlock.h"

Go to the source code of this file.

Functions

int mtm_rwlock_init (mtm_rwlock_t *lock)
int mtm_rwlock_rdlock (mtm_rwlock_t *lock)
int mtm_rwlock_wrlock (mtm_rwlock_t *lock)
int mtm_rwlock_trywrlock (mtm_rwlock_t *lock)
int mtm_rwlock_unlock (mtm_rwlock_t *lock)


Detailed Description

Reader-writer lock implementation.

Todo:
Implement rw-lock if need to support serial mode for irrevocable actions
Note: Linux implementation could use pthreads rwlock

Definition in file rwlock.c.


Generated on Sat Apr 23 11:43:36 2011 for Mnemosyne by  doxygen 1.4.7