pub unsafe fn thread_id() -> Result<Tid, Errno>
Returns the index of the current thread (threads indices are sequencial from zero)