Is there any way a newly spawned thread can get the Tid of the thread that spawned it, basically its parent? I'd prefer that over using this: __gshared mainThread; // so workThread can access it { mainThread = thisTid(); auto workThread = spawn(&MidiThread); // local }