Function wasix::thread_local_create
source · pub unsafe fn thread_local_create(user_data: u64) -> Result<TlKey, Errno>Expand description
Create a thread local variable If The web assembly process exports function named ‘_thread_local_destroy’ then it will be invoked when the thread goes out of scope and dies.
Parameters
user_data- User data that will be passed to the destructor when the thread variable goes out of scope