summaryrefslogtreecommitdiff
path: root/osx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-07-25 11:32:21 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2017-07-25 16:07:12 +0200
commit20ddcfb92afeec2da22cb8fd0feeb89014c2fc89 (patch)
tree7bf9d4c666642118b80f13542efdb1c7fb2533e0 /osx
parentd3f48117216a02bc8ae86e821b54abae1a2c2c39 (diff)
WIN don't process the SendMessage from DoYield
Actually we just want to remove the SAL_MSG_TIMER_CALLBACK messages, but this seems to be impossible using PeekMessage, without the side effect of processing some messages: "During this call, the system delivers pending, nonqueued messages... Then the first queued message that matches the specified filter is retrieved.". But it is actually enought to ignore the SAL_MSG_THREADYIELD message send using SendMessage from DoYield, which can be filtered by using PM_QS_POSTMESSAGE. Probably this should be resolved not using PeekMessage at all by using a variable to hold the time of the last posted SAL_MSG_TIMER_CALLBACK message, so we just run the callback once, if our time is <= MSG time and ignore the multiple queued messages. Same for mbOnIdleRunScheduler handling. Change-Id: Ifacb20aa38e6b5aca908e5411cf2e100f702ad1f
Diffstat (limited to 'osx')
0 files changed, 0 insertions, 0 deletions