/SPARTAN/trunk/include/synch/rwlock.h |
---|
42,8 → 42,8 |
struct rwlock { |
spinlock_t lock; |
mutex_t exclusive; |
int readers_in; |
mutex_t exclusive; /**< Mutex for writers, readers can bypass it if readers_in is positive. */ |
int readers_in; /**< Number of readers in critical section. */ |
}; |
#define rwlock_write_lock(rwl) \ |