- relocate some code into a dedicated translation unit to reduce #includes - actually set the thread-ID (the old implementation had only a TODO at that point)