Changeset 70b6de1 in mainline for kernel/test/synch/semaphore2.c
- 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
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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.