Changeset 31e15be in mainline for kernel/generic/include/atomic.h
- Timestamp:
- 2021-08-04T15:18:08Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 98a935e
- Parents:
- de38873
- git-author:
- Dmitry Selyutin <ghostmansd@…> (2020-12-23 21:59:08)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-08-04 15:18:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
rde38873 r31e15be 40 40 #include <stdatomic.h> 41 41 42 // TODO: Remove.43 // Before <stdatomic.h> was available, there was only one atomic type44 // equivalent to atomic_size_t. This means that in some places, atomic_t can45 // be replaced with a more appropriate type (e.g. atomic_bool for flags or46 // a signed type for potentially signed values).47 // So atomic_t should be replaced with the most appropriate type on a case by48 // case basis, and after there are no more uses, remove this type.49 typedef atomic_size_t atomic_t;50 51 42 #define atomic_predec(val) \ 52 43 (atomic_fetch_sub((val), 1) - 1)
Note:
See TracChangeset
for help on using the changeset viewer.