- May
- 13,126
- 180
I have often used tty_yield(0) in a loop while waiting for something to happen, and wanting thread messages to be processed (e.g., if I have SetWinEventHook() and I'm waiting for the hook process to SetEvent()).
For that purpose, I find that (simply)
works as well. I'm curious ... what else does tty_yield(0) do?
For that purpose, I find that (simply)
Code:
PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)
works as well. I'm curious ... what else does tty_yield(0) do?