rust/library/std/src/thread
bors ddc7fd9837 Auto merge of #100579 - joboet:sync_mutex_everywhere, r=thomcc
std: use `sync::Mutex` for internal statics

Since `sync::Mutex` is now `const`-constructible, it can be used for internal statics, removing the need for `sys_common::StaticMutex`. This adds some extra allocations on platforms which need to box their mutexes (currently SGX and some UNIX), but these will become unnecessary with the lock improvements tracked in #93740.

I changed the program argument implementation on Hermit, it does not need `Mutex` but can use atomics like some UNIX systems (ping `@mkroening` `@stlankes).`
2022-10-15 22:49:30 +00:00
..
local Squashed implementation of the pass 2021-06-20 16:09:42 +02:00
local.rs sync thread_local key conditions exactly with what the macro uses 2022-10-13 14:09:08 +02:00
mod.rs Auto merge of #100579 - joboet:sync_mutex_everywhere, r=thomcc 2022-10-15 22:49:30 +00:00
scoped.rs fix data race in thread::scope 2022-06-27 16:50:42 -04:00
tests.rs std: add thread parking tests 2022-10-06 22:46:47 +02:00