Lines Matching defs:flags
14 test_asynchronous_cancel(int32 flags)
19 if ((~flags & kFlags) == 0)
35 if ((atomic_get(&thread->flags) & THREAD_CANCEL_ASYNCHRONOUS) != 0)
47 int32 oldFlags = atomic_or(&thread->flags, THREAD_CANCELED);
69 // set the new flags
72 oldFlags = atomic_or(&thread->flags, THREAD_CANCEL_ENABLED);
75 oldFlags = atomic_and(&thread->flags, ~(int32)THREAD_CANCEL_ENABLED);
100 oldFlags = atomic_and(&thread->flags,
104 oldFlags = atomic_or(&thread->flags, THREAD_CANCEL_ASYNCHRONOUS);
128 if ((~atomic_get(&thread->flags) & kFlags) == 0)