Lines Matching refs:fState
64 uintptr_t state = sk_atomic_load(&fState, sk_memory_order_acquire);
70 &fState, &state, (uintptr_t)1, sk_memory_order_relaxed, sk_memory_order_relaxed)) {
71 // We've claimed it. Create our pointer and store it into fState.
74 sk_atomic_store(&fState, state, sk_memory_order_release);
85 state = sk_atomic_load(&fState, sk_memory_order_acquire);
95 auto state = sk_atomic_load(&fState, sk_memory_order_acquire);
100 // fState == 0 --> we have not created our ptr yet
101 // fState == 1 --> someone is in the middle of creating our ptr
102 // else --> (T*)fState is our ptr
103 mutable uintptr_t fState;