Changeset ff14c520 in mainline for test/synch
- Timestamp:
- 2006-03-16T22:31:39Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93165be
- Parents:
- 37c57f2
- Location:
- test/synch
- Files:
-
- 6 edited
-
rwlock2/test.c (modified) (1 diff)
-
rwlock3/test.c (modified) (1 diff)
-
rwlock4/test.c (modified) (2 diffs)
-
rwlock5/test.c (modified) (2 diffs)
-
semaphore1/test.c (modified) (2 diffs)
-
semaphore2/test.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/synch/rwlock2/test.c
r37c57f2 rff14c520 75 75 rwlock_read_lock(&rwlock); 76 76 77 thrd = thread_create(writer, NULL, TASK, 0 );77 thrd = thread_create(writer, NULL, TASK, 0, "writer"); 78 78 if (thrd) 79 79 thread_ready(thrd); -
test/synch/rwlock3/test.c
r37c57f2 rff14c520 78 78 79 79 for (i=0; i<4; i++) { 80 thrd = thread_create(reader, NULL, TASK, 0 );80 thrd = thread_create(reader, NULL, TASK, 0, "reader"); 81 81 if (thrd) 82 82 thread_ready(thrd); -
test/synch/rwlock4/test.c
r37c57f2 rff14c520 138 138 printf("Creating %d readers\n", k); 139 139 for (i=0; i<k; i++) { 140 thrd = thread_create(reader, NULL, TASK, 0 );140 thrd = thread_create(reader, NULL, TASK, 0, "reader"); 141 141 if (thrd) 142 142 thread_ready(thrd); … … 148 148 printf("Creating %d writers\n", k); 149 149 for (i=0; i<k; i++) { 150 thrd = thread_create(writer, NULL, TASK, 0 );150 thrd = thread_create(writer, NULL, TASK, 0, "writer"); 151 151 if (thrd) 152 152 thread_ready(thrd); -
test/synch/rwlock5/test.c
r37c57f2 rff14c520 96 96 for (j=0; j<(READERS+WRITERS)/2; j++) { 97 97 for (k=0; k<i; k++) { 98 thrd = thread_create(reader, NULL, TASK, 0 );98 thrd = thread_create(reader, NULL, TASK, 0, "reader"); 99 99 if (thrd) 100 100 thread_ready(thrd); … … 103 103 } 104 104 for (k=0; k<(4-i); k++) { 105 thrd = thread_create(writer, NULL, TASK, 0 );105 thrd = thread_create(writer, NULL, TASK, 0, "writer"); 106 106 if (thrd) 107 107 thread_ready(thrd); -
test/synch/semaphore1/test.c
r37c57f2 rff14c520 100 100 for (j=0; j<(CONSUMERS+PRODUCERS)/2; j++) { 101 101 for (k=0; k<i; k++) { 102 thrd = thread_create(consumer, NULL, TASK, 0 );102 thrd = thread_create(consumer, NULL, TASK, 0, "consumer"); 103 103 if (thrd) 104 104 thread_ready(thrd); … … 107 107 } 108 108 for (k=0; k<(4-i); k++) { 109 thrd = thread_create(producer, NULL, TASK, 0 );109 thrd = thread_create(producer, NULL, TASK, 0, "producer"); 110 110 if (thrd) 111 111 thread_ready(thrd); -
test/synch/semaphore2/test.c
r37c57f2 rff14c520 108 108 printf("Creating %d consumers\n", k); 109 109 for (i=0; i<k; i++) { 110 thrd = thread_create(consumer, NULL, TASK, 0 );110 thrd = thread_create(consumer, NULL, TASK, 0, "consumer"); 111 111 if (thrd) 112 112 thread_ready(thrd);
Note:
See TracChangeset
for help on using the changeset viewer.
