Closed grantr closed 9 years ago
Is thread-safety the primary motivation for this?
Thread safety is the only motivation for this. I can't imagine it will be faster. If you're confident in the current thread-safe-ness, I don't see a good reason to merge.
Starting to seem like a worse idea all the time! :wink:
Looks like the code already uses a Monitor, which should make it threadsafe.
oops, didn't mean to close.
Monitor should be fine.
Not sure if this is an improvement or not, but it was easy to try. Popping an empty queue now requires exception handling, so there might be a performance degradation. If so it's probably not worth the change.