Lines Matching refs:refCount
20 uint32_t refCount; member
25 s->refCount = 1; in test_atomic_fetch_add()
27 …uint32_t result = __c11_atomic_fetch_add((volatile _Atomic(uint32_t) *)&s->refCount,- 1, memory_or… in test_atomic_fetch_add()
31 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}} in test_atomic_fetch_add()
38 s->refCount = 1; in test_atomic_load()
40 …uint32_t result = __c11_atomic_load((volatile _Atomic(uint32_t) *)&s->refCount, memory_order_relax… in test_atomic_load()
43 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}} in test_atomic_load()
50 s->refCount = 1; in test_atomic_store()
52 __c11_atomic_store((volatile _Atomic(uint32_t) *)&s->refCount, 2, memory_order_relaxed); in test_atomic_store()
56 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}} in test_atomic_store()
60 s->refCount = 1; in test_atomic_exchange()
62 …uint32_t result = __c11_atomic_exchange((volatile _Atomic(uint32_t) *)&s->refCount, 2, memory_orde… in test_atomic_exchange()
66 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}} in test_atomic_exchange()
74 s->refCount = 1; in test_atomic_compare_exchange_strong()
77 …_Bool result = __c11_atomic_compare_exchange_strong((volatile _Atomic(uint32_t) *)&s->refCount, &e… in test_atomic_compare_exchange_strong()
81 clang_analyzer_eval(s->refCount == 3); // expected-warning {{UNKNOWN}} in test_atomic_compare_exchange_strong()
86 s->refCount = 1; in test_atomic_compare_exchange_weak()
89 …_Bool result = __c11_atomic_compare_exchange_weak((volatile _Atomic(uint32_t) *)&s->refCount, &exp… in test_atomic_compare_exchange_weak()
93 clang_analyzer_eval(s->refCount == 3); // expected-warning {{UNKNOWN}} in test_atomic_compare_exchange_weak()