sunfishcode / mustang

Rust programs written entirely in Rust
Other
849 stars 24 forks source link

Call `set_tid_address` on the main thread. #207

Closed sunfishcode closed 1 year ago

sunfishcode commented 1 year ago

Call set_tid_address to initialize the main thread's clear child tid address field.

And, avoid calling gettid() when the tid can be determined in other ways.