|
@@ -29,7 +29,7 @@ updated by one CPU, local_t is probably more appropriate. Please see
|
|
local_t.
|
|
local_t.
|
|
|
|
|
|
The first operations to implement for atomic_t's are the initializers and
|
|
The first operations to implement for atomic_t's are the initializers and
|
|
-plain reads. ::
|
|
|
|
|
|
+plain writes. ::
|
|
|
|
|
|
#define ATOMIC_INIT(i) { (i) }
|
|
#define ATOMIC_INIT(i) { (i) }
|
|
#define atomic_set(v, i) ((v)->counter = (i))
|
|
#define atomic_set(v, i) ((v)->counter = (i))
|