HPX itself uses TLS to store a) a reference to the current scheduler responsible for the particular kernel-thread, and b) a reference to the currently active (running) fiber object. Both uses are safe as they are maintained by the runtime.