pub unsafe fn write_thread_pointer(fs_base: usize)
Expand description

Writes the thread pointer of the current CPU.

It is used to implement TLS (Thread Local Storage).

Safety

This function is unsafe as it changes the CPU states.