Changeset 70b6de1 in mainline for kernel/test/synch/rwlock4.c
- Timestamp:
- 2006-12-11T19:33:19Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e54fb21
- Parents:
- f272cb8
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/rwlock4.c
rf272cb8 r70b6de1 47 47 static rwlock_t rwlock; 48 48 49 SPINLOCK_INITIALIZE(lock);49 static SPINLOCK_INITIALIZE(lock); 50 50 51 51 static waitq_t can_start; 52 52 53 uint32_t seed = 0xdeadbeef;53 static uint32_t seed = 0xdeadbeef; 54 54 55 55 static uint32_t random(uint32_t max); … … 59 59 static void failed(void); 60 60 61 uint32_t random(uint32_t max)61 static uint32_t random(uint32_t max) 62 62 { 63 63 uint32_t rc; … … 71 71 72 72 73 void writer(void *arg)73 static void writer(void *arg) 74 74 { 75 75 int rc, to; … … 94 94 } 95 95 96 void reader(void *arg)96 static void reader(void *arg) 97 97 { 98 98 int rc, to; … … 113 113 } 114 114 115 void failed(void)115 static void failed(void) 116 116 { 117 117 printf("Test failed prematurely.\n"); … … 119 119 } 120 120 121 void test (void)121 void test_rwlock4(void) 122 122 { 123 123 context_t ctx;
Note:
See TracChangeset
for help on using the changeset viewer.