should write a thread class for this, rather than filling it with ifd\ efs
hack_thread in .cpp... I think this is a hint.
Alot of the threading here appears to be broken, race conditions around etc. We haven't had problems yet, because we're not really using the threading that much.