Changeset 70b6de1 in mainline for kernel/test/synch
- Timestamp:
- 2006-12-11T19:33:19Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e54fb21
- Parents:
- f272cb8
- Location:
- kernel/test/synch
- Files:
-
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/rwlock1.c
rf272cb8 r70b6de1 41 41 static rwlock_t rwlock; 42 42 43 void test (void)43 void test_rwlock1(void) 44 44 { 45 45 printf("Read/write locks test #1\n"); -
kernel/test/synch/rwlock2.c
rf272cb8 r70b6de1 43 43 static void failed(void); 44 44 45 void writer(void *arg)45 static void writer(void *arg) 46 46 { 47 47 … … 59 59 } 60 60 61 void failed()61 static void failed() 62 62 { 63 63 printf("Test failed prematurely.\n"); … … 65 65 } 66 66 67 void test (void)67 void test_rwlock2(void) 68 68 { 69 69 thread_t *thrd; -
kernel/test/synch/rwlock3.c
rf272cb8 r70b6de1 43 43 static void failed(void); 44 44 45 void reader(void *arg)45 static void reader(void *arg) 46 46 { 47 47 thread_detach(THREAD); … … 62 62 } 63 63 64 void failed(void)64 static void failed(void) 65 65 { 66 66 printf("Test failed prematurely.\n"); … … 68 68 } 69 69 70 void test (void)70 void test_rwlock3(void) 71 71 { 72 72 int i; -
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; -
kernel/test/synch/rwlock5.c
rf272cb8 r70b6de1 77 77 } 78 78 79 void test (void)79 void test_rwlock5(void) 80 80 { 81 81 int i, j, k; -
kernel/test/synch/semaphore1.c
rf272cb8 r70b6de1 50 50 static void failed(void); 51 51 52 void producer(void *arg)52 static void producer(void *arg) 53 53 { 54 54 thread_detach(THREAD); … … 62 62 } 63 63 64 void consumer(void *arg)64 static void consumer(void *arg) 65 65 { 66 66 thread_detach(THREAD); … … 74 74 } 75 75 76 void failed(void)76 static void failed(void) 77 77 { 78 78 printf("Test failed prematurely.\n"); … … 80 80 } 81 81 82 void test (void)82 void test_semaphore1(void) 83 83 { 84 84 int i, j, k; -
kernel/test/synch/semaphore2.c
rf272cb8 r70b6de1 42 42 static semaphore_t sem; 43 43 44 SPINLOCK_INITIALIZE(lock);44 static SPINLOCK_INITIALIZE(lock); 45 45 46 46 static waitq_t can_start; 47 47 48 uint32_t seed = 0xdeadbeef;48 static uint32_t seed = 0xdeadbeef; 49 49 50 50 static uint32_t random(uint32_t max); … … 53 53 static void failed(void); 54 54 55 uint32_t random(uint32_t max)55 static uint32_t random(uint32_t max) 56 56 { 57 57 uint32_t rc; … … 65 65 66 66 67 void consumer(void *arg)67 static void consumer(void *arg) 68 68 { 69 69 int rc, to; … … 88 88 } 89 89 90 void failed(void)90 static void failed(void) 91 91 { 92 92 printf("Test failed prematurely.\n"); … … 94 94 } 95 95 96 void test (void)96 void test_semaphore2(void) 97 97 { 98 98 uint32_t i, k;
Note:
See TracChangeset
for help on using the changeset viewer.