Changeset c95daa5 in mainline for kernel/generic/include/atomic.h


Ignore:
Timestamp:
2020-12-23T21:59:08Z (3 years ago)
Author:
Dmitry Selyutin <ghostmansd@…>
Parents:
1483981
Message:

kernel: deprecate atomic_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/atomic.h

    r1483981 rc95daa5  
    4040#include <stdatomic.h>
    4141
    42 // TODO: Remove.
    43 // Before <stdatomic.h> was available, there was only one atomic type
    44 // equivalent to atomic_size_t. This means that in some places, atomic_t can
    45 // be replaced with a more appropriate type (e.g. atomic_bool for flags or
    46 // a signed type for potentially signed values).
    47 // So atomic_t should be replaced with the most appropriate type on a case by
    48 // case basis, and after there are no more uses, remove this type.
    49 typedef atomic_size_t atomic_t;
    50 
    5142#define atomic_predec(val) \
    5243        (atomic_fetch_sub((val), 1) - 1)
Note: See TracChangeset for help on using the changeset viewer.