Lines Matching defs:flag
99 * Set event if an event handle has been stored in the flag, and
100 * set flag to -1 otherwise. Note that -1 cannot be a valid handle value.
103 ptw32_mcs_flag_set (HANDLE * flag)
106 (PTW32_INTERLOCKED_SIZEPTR)flag,
111 /* another thread has already stored an event handle in the flag */
119 * Store an event handle in the flag and wait on it if the flag has not been
123 ptw32_mcs_flag_wait (HANDLE * flag)
126 PTW32_INTERLOCKED_EXCHANGE_ADD_SIZE((PTW32_INTERLOCKED_SIZEPTR)flag,
129 /* the flag is not set. create event. */
134 (PTW32_INTERLOCKED_SIZEPTR)flag,
138 /* stored handle in the flag. wait on it now. */