Changeset 46c20c8 in mainline for kernel/test/synch
- 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. - Location:
- kernel/test/synch
- Files:
-
- 9 deleted
- 2 edited
-
rwlock1.c (deleted)
-
rwlock1.def (deleted)
-
rwlock2.def (deleted)
-
rwlock3.c (deleted)
-
rwlock3.def (deleted)
-
rwlock4.c (deleted)
-
rwlock4.def (deleted)
-
rwlock5.c (deleted)
-
rwlock5.def (deleted)
-
semaphore1.c (modified) (3 diffs)
-
semaphore2.c (modified) (2 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 } -
kernel/test/synch/semaphore2.c
rfb150d78 r46c20c8 32 32 #include <print.h> 33 33 #include <proc/thread.h> 34 #include < arch/types.h>34 #include <typedefs.h> 35 35 #include <arch/context.h> 36 36 … … 82 82 } 83 83 84 c har *test_semaphore2(void)84 const char *test_semaphore2(void) 85 85 { 86 86 uint32_t i, k;
Note:
See TracChangeset
for help on using the changeset viewer.
