Okay, but at least you fixed that. It is too bad it didn't speed things up.
Just note - that this is an unsafe construct in a multi-threaded program (but yours isn't, so it is fine). With multi-threading, you have to use some sort of thread lock, not just a single variable.
Just note - that this is an unsafe construct in a multi-threaded program (but yours isn't, so it is fine). With multi-threading, you have to use some sort of thread lock, not just a single variable.