Changeset 46c20c8 in mainline for kernel/test/synch/semaphore1.c
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/test/synch/semaphore1.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/semaphore1.c
rfb150d78 r46c20c8 70 70 } 71 71 72 c har *test_semaphore1(void)72 const char *test_semaphore1(void) 73 73 { 74 74 int i, j, k; 75 int consumers, producers; 75 atomic_count_t consumers; 76 atomic_count_t producers; 76 77 77 78 waitq_initialize(&can_start); … … 87 88 producers = (4 - i) * PRODUCERS; 88 89 89 TPRINTF("Creating %d consumers and %d producers...", consumers, producers); 90 TPRINTF("Creating %" PRIua " consumers and %" PRIua " producers...", 91 consumers, producers); 90 92 91 93 for (j = 0; j < (CONSUMERS + PRODUCERS) / 2; j++) { … … 112 114 113 115 while ((items_consumed.count != consumers) || (items_produced.count != producers)) { 114 TPRINTF("%d consumers remaining, %d producers remaining\n", consumers - items_consumed.count, producers - items_produced.count); 116 TPRINTF("%" PRIua " consumers remaining, %" PRIua " producers remaining\n", 117 consumers - items_consumed.count, producers - items_produced.count); 115 118 thread_sleep(1); 116 119 }
Note:
See TracChangeset
for help on using the changeset viewer.
