Ignore:
File:
1 edited

Legend:

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

    r3cfe2b8 ra35b458  
    4646        thread_detach(THREAD);
    4747
    48         while (atomic_load(&finish)) {
     48        while (atomic_get(&finish)) {
    4949                TPRINTF("%" PRIu64 " ", THREAD->tid);
    5050                thread_usleep(100000);
     
    5656{
    5757        unsigned int i;
    58         size_t total = 0;
     58        atomic_count_t total = 0;
    5959
    60         atomic_store(&finish, 1);
    61         atomic_store(&threads_finished, 0);
     60        atomic_set(&finish, 1);
     61        atomic_set(&threads_finished, 0);
    6262
    6363        for (i = 0; i < THREADS; i++) {
     
    7575        thread_sleep(10);
    7676
    77         atomic_store(&finish, 0);
    78         while (atomic_load(&threads_finished) < total) {
    79                 TPRINTF("Threads left: %zu\n", total - atomic_load(&threads_finished));
     77        atomic_set(&finish, 0);
     78        while (atomic_get(&threads_finished) < total) {
     79                TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_finished));
    8080                thread_sleep(1);
    8181        }
Note: See TracChangeset for help on using the changeset viewer.