Subj : Re: Overhead of getting current thread id To : comp.programming.threads From : Uenal Mutlu Date : Fri Apr 08 2005 03:04 am "Oliver S." wrote in message news:4255b8f3@news-fe-01... > > Is someone aware of any faster alternatives to > > GetCurrentThreadId() in Win32? Or is it already > > optimal? > > That's the disassembly of GetCurrentThreadId() > > mov eax,dword ptr fs:[0x18] > mov eax,dword ptr [eax+0x24] > ret > > Doesn't this look pretty fast ? Yes, indeed this seems ok. Thank you very much. .