Philipp Stephani <p.stephani2@gmail.com> schrieb am Mi., 17. Jan. 2018 um 23:16 Uhr:
Maybe systhread.h should have a function

extern sys_thread_t sys_thread_self ();


Uh, it already has that :)