Lines Matching refs:mask

40     uint32_t mask = 1;
41 while (mask & m_validBits)
42 mask <<= 1;
43 m_validBits |= mask;
44 return mask;
48 PThreadEvent::FreeEventBits(const uint32_t mask)
50 // DNBLogThreadedIf(LOG_EVENTS, "%p PThreadEvent::%s (0x%8.8x)", this, __FUNCTION__, mask);
51 if (mask)
54 m_bits &= ~mask;
55 m_validBits &= ~mask;
92 PThreadEvent::SetEvents(const uint32_t mask)
94 // DNBLogThreadedIf(LOG_EVENTS, "%p PThreadEvent::%s (0x%8.8x)", this, __FUNCTION__, mask);
96 if (mask)
101 // Set the all event bits that are set in 'mask'
102 m_bits |= mask;
111 PThreadEvent::ResetEvents(const uint32_t mask)
113 // DNBLogThreadedIf(LOG_EVENTS, "%p PThreadEvent::%s (0x%8.8x)", this, __FUNCTION__, mask);
114 if (mask)
120 // Clear the all event bits that are set in 'mask'
121 m_bits &= ~mask;
130 // 'mask'. If 'timeout_abstime' is NULL, then wait forever.
133 PThreadEvent::WaitForSetEvents(const uint32_t mask, const struct timespec *timeout_abstime) const
135 // DNBLogThreadedIf(LOG_EVENTS, "%p PThreadEvent::%s (0x%8.8x, %p)", this, __FUNCTION__, mask, timeout_abstime);
146 if (mask & m_bits)
148 uint32_t bits_set = mask & m_bits;
162 uint32_t bits_set = mask & m_bits;
177 // Wait until 'timeout_abstime' for any events in 'mask' to reset.
181 PThreadEvent::WaitForEventsToReset(const uint32_t mask, const struct timespec *timeout_abstime) const
183 // DNBLogThreadedIf(LOG_EVENTS, "%p PThreadEvent::%s (0x%8.8x, %p)", this, __FUNCTION__, mask, timeout_abstime);
194 if ((mask & m_bits) == 0)
197 // which bits from the mask were still set (none of them)
214 // Return a mask indicating which bits (if any) were still set
215 return mask & m_bits;
219 PThreadEvent::WaitForResetAck (const uint32_t mask, const struct timespec *timeout_abstime) const
221 if (mask & m_reset_ack_mask)
223 // DNBLogThreadedIf(LOG_EVENTS, "%p PThreadEvent::%s (0x%8.8x, %p)", this, __FUNCTION__, mask, timeout_abstime);
224 return WaitForEventsToReset (mask & m_reset_ack_mask, timeout_abstime);