Blog - Threading is now my bitch

Posted 2010-10-02 21:48:38 by thePowersGang

In response to my post earlier today, I was spurred to take another look at the threading code. It turns out taking a break was a good idea.
The bug was in the new mutex code, to speed things up I was using a double ended linked list as a queue. Works quite nicely... if you remember to set the end pointer to NULL once the queue is emptied. I had forgotten to do that, hence the mutex acquire code was trampling the active thread list, causing bugchecks to fire.