Changes in kernel/test/synch/semaphore2.c [0f4f1b2:bab75df6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/semaphore2.c
r0f4f1b2 rbab75df6 61 61 int to; 62 62 63 thread_detach(THREAD); 64 63 65 waitq_sleep(&can_start); 64 66 … … 92 94 thrd = thread_create(consumer, NULL, TASK, 93 95 THREAD_FLAG_NONE, "consumer"); 94 if (thrd) { 95 thread_start(thrd); 96 thread_detach(thrd); 97 } else { 96 if (thrd) 97 thread_ready(thrd); 98 else 98 99 TPRINTF("Error creating thread\n"); 99 }100 100 } 101 101 102 102 thread_usleep(20000); 103 waitq_wake _all(&can_start);103 waitq_wakeup(&can_start, WAKEUP_ALL); 104 104 105 105 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.