Changeset 280a27e in mainline for test/synch
- Timestamp:
- 2006-04-16T13:16:44Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50de918
- Parents:
- c624b96
- Location:
- test/synch
- Files:
-
- 2 edited
-
rwlock4/test.c (modified) (1 diff)
-
rwlock5/test.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test/synch/rwlock4/test.c
rc624b96 r280a27e 133 133 134 134 context_save(&ctx); 135 printf("sp=% X, readers_in=%d\n", ctx.sp, rwlock.readers_in);135 printf("sp=%#X, readers_in=%d\n", ctx.sp, rwlock.readers_in); 136 136 137 137 k = random(7) + 1; -
test/synch/rwlock5/test.c
rc624b96 r280a27e 92 92 writers = (4-i)*WRITERS; 93 93 94 printf("Creating % d readers and %d writers...", readers, writers);94 printf("Creating %ld readers and %ld writers...", readers, writers); 95 95 96 96 for (j=0; j<(READERS+WRITERS)/2; j++) { … … 117 117 118 118 while (items_read.count != readers || items_written.count != writers) { 119 printf("% d readers remaining, %d writers remaining, readers_in=%d\n", readers - items_read.count, writers - items_written.count, rwlock.readers_in);119 printf("%zd readers remaining, %zd writers remaining, readers_in=%zd\n", readers - items_read.count, writers - items_written.count, rwlock.readers_in); 120 120 thread_usleep(100000); 121 121 }
Note:
See TracChangeset
for help on using the changeset viewer.
