Changes in kernel/test/synch/semaphore1.c [0f4f1b2:111b9b9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/semaphore1.c
r0f4f1b2 r111b9b9 89 89 thrd = thread_create(consumer, NULL, TASK, 90 90 THREAD_FLAG_NONE, "consumer"); 91 if (thrd) { 92 thread_start(thrd); 93 thread_detach(thrd); 94 } else { 91 if (thrd) 92 thread_ready(thrd); 93 else 95 94 TPRINTF("could not create consumer %d\n", i); 96 }97 95 } 98 96 for (k = 0; k < (4 - i); k++) { 99 97 thrd = thread_create(producer, NULL, TASK, 100 98 THREAD_FLAG_NONE, "producer"); 101 if (thrd) { 102 thread_start(thrd); 103 thread_detach(thrd); 104 } else { 99 if (thrd) 100 thread_ready(thrd); 101 else 105 102 TPRINTF("could not create producer %d\n", i); 106 }107 103 } 108 104 }
Note:
See TracChangeset
for help on using the changeset viewer.