Lines Matching refs:kMsgHaveWork
19 static const int kMsgHaveWork = WM_USER + 1;
99 PostMessage(message_hwnd_, kMsgHaveWork, reinterpret_cast<WPARAM>(this), 0);
166 case kMsgHaveWork:
286 // Since we handled a kMsgHaveWork message, we must still update this flag.
344 // While running our main message pump, we discard kMsgHaveWork messages.
345 if (msg.message == kMsgHaveWork && msg.hwnd == message_hwnd_)
366 // When we encounter a kMsgHaveWork message, this method is called to peek
368 // goal is to make the kMsgHaveWork as non-intrusive as possible, even though
370 // peeks a message while there is no chance for a kMsgHaveWork to be pending,
371 // then resets the have_work_ flag (allowing a replacement kMsgHaveWork to
373 // that the re-post of kMsgHaveWork may be asynchronous to this thread!!
388 DCHECK(!have_message || kMsgHaveWork != msg.message ||
391 // Since we discarded a kMsgHaveWork message, we must update the flag.
402 // kMsgHaveWork events get (percentage wise) rarer and rarer.