Add Atomic<T> template
Add a C++ `Atomic<T>` template to make atomics even easier. Basically
compatible with C++11 `std::atomic<T>`, but using the underlying
`core_util_atomic_xxx` functions from mbed_atomic.h, so appropriate for
synchronising with interrupts and optimised for uniprocessor.

One extra piece of functionality beyond the `core_util_atomic_xxx`
functions is the ability to have an arbitrary atomic type - eg a small
structure with 2 `uint16_t`s can be stored in a `uint32_t` container.
ls
1 parent 5d2b37d commit f9f073245b984733651396c91f15c7f0b6d5d584
@Kevin Bracey Kevin Bracey authored on 29 Mar 2019
Showing 2 changed files
View
mbed.h
View
platform/Atomic.h 0 → 100644
Too large (Show diff)