<div dir="ltr"><div>I couldn't find a wrapper to get current thread id.</div><div>There is Thread.getThis but the address it returns is the same for all threads as explained here (<a href="http://ddili.org/ders/d.en/concurrency.html">http://ddili.org/ders/d.en/concurrency.html</a>) so it's not useful for logging.</div>
<div><br></div><div>How about adding this:</div><div>auto getTid() to class Thread</div><div>Implementation on OSX:</div>mach_port_t tid = pthread_mach_thread_np(pthread_self());<br><div><br></div></div>