Mike Hearn mike@theoretic.com writes:
How? I took another look and couldn't see any way for it to escape, but I could well have missed one. Or do you mean more generally?
You are trying to protect the global list of items with a per-item critical section. This cannot possibly work.