Changeset e3306d04 in mainline for kernel/test/thread/thread1.c


Ignore:
Timestamp:
2018-09-07T15:54:32Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f1d850
Parents:
036e97c
Message:

Convert atomic_t to atomic_size_t (4): Use atomic_store instead of atomic_set

File:
1 edited

Legend:

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

    r036e97c re3306d04  
    5858        atomic_count_t total = 0;
    5959
    60         atomic_set(&finish, 1);
    61         atomic_set(&threads_finished, 0);
     60        atomic_store(&finish, 1);
     61        atomic_store(&threads_finished, 0);
    6262
    6363        for (i = 0; i < THREADS; i++) {
     
    7575        thread_sleep(10);
    7676
    77         atomic_set(&finish, 0);
     77        atomic_store(&finish, 0);
    7878        while (atomic_load(&threads_finished) < total) {
    7979                TPRINTF("Threads left: %zu\n", total - atomic_load(&threads_finished));
Note: See TracChangeset for help on using the changeset viewer.