fn getCurrentId() Id

Returns the platform ID of the callers thread. Attempts to use thread locals and avoid syscalls when possible.