On Tuesday, 4 March 2014 at 04:39:33 UTC, Timothee Cour wrote:That is not true. Where exactly?
I couldn't find a wrapper to get current thread id.
There is Thread.getThis but the address it returns is the same for all threads
I couldn't find it, but if Ali's book states that Thread.getThis() returns the same reference, it's a bug in the book that should be fixed.core.thread.Thread.getThis();
auto getTid() to class Thread
std.concurrency.thisTid;
The latter one is mentioned in that same chapter.