Ignore:
File:
1 edited

Legend:

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

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