Changeset dc747e3 in mainline for test/synch
- 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
- Location:
- test/synch
- Files:
-
- 2 edited
-
rwlock4/test.c (modified) (2 diffs)
-
semaphore2/test.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/synch/rwlock4/test.c
r3fc03fd rdc747e3 40 40 #include <synch/rwlock.h> 41 41 #include <synch/synch.h> 42 #include <synch/spinlock.h> 42 43 43 44 #define READERS 50 … … 46 47 static rwlock_t rwlock; 47 48 48 static spinlock_t lock;49 SPINLOCK_INITIALIZE(lock); 49 50 50 51 static waitq_t can_start; -
test/synch/semaphore2/test.c
r3fc03fd rdc747e3 38 38 #include <synch/semaphore.h> 39 39 #include <synch/synch.h> 40 #include <synch/spinlock.h> 40 41 41 42 static semaphore_t sem; 42 43 43 static spinlock_t lock;44 SPINLOCK_INITIALIZE(lock); 44 45 45 46 static waitq_t can_start;
Note:
See TracChangeset
for help on using the changeset viewer.
