Changeset dc747e3 in mainline for generic/include/synch/rwlock.h
- Timestamp:
- 2005-12-15T10:27:59Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7dd2561
- Parents:
- 3fc03fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/synch/rwlock.h
r3fc03fd rdc747e3 34 34 #include <synch/mutex.h> 35 35 #include <synch/synch.h> 36 #include <synch/spinlock.h> 36 37 37 38 enum rwlock_type { … … 42 43 43 44 struct rwlock { 44 spinlock_t lock;45 SPINLOCK_DECLARE(lock); 45 46 mutex_t exclusive; /**< Mutex for writers, readers can bypass it if readers_in is positive. */ 46 47 count_t readers_in; /**< Number of readers in critical section. */
Note:
See TracChangeset
for help on using the changeset viewer.