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