Changeset 7f1c620 in mainline for test/synch/semaphore2/test.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/synch/semaphore2/test.c
r991779c5 r7f1c620 46 46 static waitq_t can_start; 47 47 48 __u32seed = 0xdeadbeef;48 uint32_t seed = 0xdeadbeef; 49 49 50 static __u32 random(__u32max);50 static uint32_t random(uint32_t max); 51 51 52 52 static void consumer(void *arg); 53 53 static void failed(void); 54 54 55 __u32 random(__u32max)55 uint32_t random(uint32_t max) 56 56 { 57 __u32rc;57 uint32_t rc; 58 58 59 59 spinlock_lock(&lock); … … 96 96 void test(void) 97 97 { 98 __u32i, k;98 uint32_t i, k; 99 99 100 100 printf("Semaphore test #2\n");
Note:
See TracChangeset
for help on using the changeset viewer.