Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e3306d04 in mainline for kernel/test/atomic/atomic1.c


Ignore:
Timestamp:
2018-09-07T15:54:32Z (4 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial
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/atomic/atomic1.c

    r036e97c re3306d04  
    3636        atomic_t a;
    3737
    38         atomic_set(&a, 10);
     38        atomic_store(&a, 10);
    3939        if (atomic_load(&a) != 10)
    40                 return "Failed atomic_set()/atomic_load()";
     40                return "Failed atomic_store()/atomic_load()";
    4141
    4242        if (atomic_postinc(&a) != 10)
Note: See TracChangeset for help on using the changeset viewer.