1
Fork 0

std: directly use pthread in UNIX parker implementation

Mutex and Condvar are being replaced by more efficient implementations, which need thread parking themselves (see #93740). Therefore use the pthread synchronization primitives directly. Also, avoid allocating because the Parker struct is being placed in an Arc anyways.
This commit is contained in:
joboet 2022-04-25 15:19:50 +02:00
parent b759b22186
commit 54daf496e2
No known key found for this signature in database
GPG key ID: 704E0149B0194B3C
7 changed files with 372 additions and 28 deletions

View file

@ -39,6 +39,7 @@ pub mod stdio;
pub mod thread;
pub mod thread_local_dtor;
pub mod thread_local_key;
pub mod thread_parker;
pub mod time;
#[cfg(target_os = "espidf")]