mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
doc: atomic: provide explanation about why atomic_int_t is struct
See also https://github.com/RIOT-OS/RIOT/pull/2321#issuecomment-72088818
This commit is contained in:
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…
Reference in New Issue
Block a user