Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/falloc2.c

    r11b285d re3306d04  
    117117const char *test_falloc2(void)
    118118{
    119         atomic_set(&thread_count, THREADS);
    120         atomic_set(&thread_fail, 0);
     119        atomic_store(&thread_count, THREADS);
     120        atomic_store(&thread_fail, 0);
    121121
    122122        for (unsigned int i = 0; i < THREADS; i++) {
     
    130130        }
    131131
    132         while (atomic_get(&thread_count) > 0) {
    133                 TPRINTF("Threads left: %" PRIua "\n",
    134                     atomic_get(&thread_count));
     132        while (atomic_load(&thread_count) > 0) {
     133                TPRINTF("Threads left: %zu\n",
     134                    atomic_load(&thread_count));
    135135                thread_sleep(1);
    136136        }
    137137
    138         if (atomic_get(&thread_fail) == 0)
     138        if (atomic_load(&thread_fail) == 0)
    139139                return NULL;
    140140
Note: See TracChangeset for help on using the changeset viewer.