Ignore:
File:
1 edited

Legend:

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

    r0f4f1b2 r111b9b9  
    8989                                thrd = thread_create(consumer, NULL, TASK,
    9090                                    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
    9594                                        TPRINTF("could not create consumer %d\n", i);
    96                                 }
    9795                        }
    9896                        for (k = 0; k < (4 - i); k++) {
    9997                                thrd = thread_create(producer, NULL, TASK,
    10098                                    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
    105102                                        TPRINTF("could not create producer %d\n", i);
    106                                 }
    107103                        }
    108104                }
Note: See TracChangeset for help on using the changeset viewer.