Ticket #1997 defect closed fixed
perhaps wakeUp could be slightly simpler
|Reported by:||wingo||Owned by:||exarkun|
|Cc:||spiv, jknight, exarkun, glyph||Branch:||
(diff, github, buildbot, log)
Description (last modified by glyph) (diff)
The test for what thread we're in is unnecessary, and slightly worsens a race with select() because the handler could be called after processing events in the queue but before entering select().
We're leaving it this way for now, because the race is easier to trigger in its current configuration (and still exists in other configurations), but will be removing this redundant and unnecessary code either after or during the fix for the real underlying issue.