Returns an identifier of the calling thread.
The function implements a behaviour of the thrd_current function defined in the ISO/IEC 9899:2011 (aka C11) standard.