Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/thread/thread1.c

    r7e752b2 rcb01e1e  
    5353}
    5454
    55 const char *test_thread1(void)
     55char *test_thread1(void)
    5656{
    57         unsigned int i;
    58         atomic_count_t total = 0;
     57        unsigned int i, total = 0;
    5958       
    6059        atomic_set(&finish, 1);
    6160        atomic_set(&threads_finished, 0);
    6261       
    63         for (i = 0; i < THREADS; i++) {
     62        for (i = 0; i < THREADS; i++) { 
    6463                thread_t *t;
    6564                if (!(t = thread_create(threadtest, NULL, TASK, 0, "threadtest", false))) {
     
    7574       
    7675        atomic_set(&finish, 0);
    77         while (atomic_get(&threads_finished) < total) {
    78                 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_finished));
     76        while (atomic_get(&threads_finished) < ((long) total)) {
     77                TPRINTF("Threads left: %d\n", total - atomic_get(&threads_finished));
    7978                thread_sleep(1);
    8079        }
Note: See TracChangeset for help on using the changeset viewer.