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.
|
* @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 {
|
typedef struct atomic_int {
|
||||||
volatile int value; /**< the actual value */
|
volatile int value; /**< the actual value */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user