
29 Jul
2013
29 Jul
'13
12:44 p.m.
As someone suggested to me in the comments of the page, I re-implemented the loop using a condition_variable so that pushing a task in the queue notify it. I have a friend who can reproduce the bug systematically (windows Vista, core 2 duo) so I sent him versions: - removing the sleep call works (but is a bit less performant apparently) - changing the loop to use condition_variable works So it looks like the sleep call does have a strange behaviour but I don't know the source of the problem. Using the condition_variable seems more appropriate so I'll keep this fix for now. Joel Lamotte