Changes in kernel/generic/include/lib/refcount.h [1a1e124:1871118] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/lib/refcount.h
r1a1e124 r1871118 49 49 } atomic_refcount_t; 50 50 51 #define REFCOUNT_INITIALIZER() { \52 .__cnt = ATOMIC_VAR_INIT(0), \53 }54 55 51 static inline void refcount_init(atomic_refcount_t *rc) 56 52 { 57 atomic_ init(&rc->__cnt, 0);53 atomic_store_explicit(&rc->__cnt, 0, memory_order_relaxed); 58 54 } 59 55
Note:
See TracChangeset
for help on using the changeset viewer.