doc: atomic: provide explanation about why atomic_int_t is struct

See also https://github.com/RIOT-OS/RIOT/pull/2321#issuecomment-72088818
pr/gpio
Martine Lenders 7 years ago
parent 0a65d8c558
commit c9f05efbb7

@ -27,6 +27,9 @@ extern "C" {
/**
* @brief Integer variable for use in atomic counters.
*
* @note This type is a struct for hard type checking (let the compiler warn
* if int is assigned regularly).
*/
typedef struct atomic_int {
volatile int value; /**< the actual value */

Loading…
Cancel
Save