Lines Matching +full:- +full:o
1 /* SPDX-License-Identifier: BSD-2-Clause */
26 * // Some other thread may have initialized o by now so check that
27 * // we still need to initialize o.
28 * if (!o) {
29 * o = initialize();
38 * // Now that we have the mutex o can't be ininialized/uninitialized
40 * // to guard against the thread above already having reinitialized o
41 * if (!refcount_val(r) && o)
42 * uninitialize(o)
46 * where r if the reference counter, o is the object and m the mutex
61 atomic_store_uint(&r->val, val); in refcount_set()
66 return atomic_load_uint(&r->val); in refcount_val()