Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/semaphore2.c

    rbab75df6 r0f4f1b2  
    6161        int to;
    6262
    63         thread_detach(THREAD);
    64 
    6563        waitq_sleep(&can_start);
    6664
     
    9492                thrd = thread_create(consumer, NULL, TASK,
    9593                    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 {
    9998                        TPRINTF("Error creating thread\n");
     99                }
    100100        }
    101101
    102102        thread_usleep(20000);
    103         waitq_wakeup(&can_start, WAKEUP_ALL);
     103        waitq_wake_all(&can_start);
    104104
    105105        return NULL;
Note: See TracChangeset for help on using the changeset viewer.