about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-27 02:19:16 +0000
committerbors <bors@rust-lang.org>2017-10-27 02:19:16 +0000
commit1855aff8d78e74a7ec5140dbd7bd18fc3566095a (patch)
tree1545aef5cd25ea0cf06ea6e4d0ba5728572368e2 /src/libstd/sys/unix/stack_overflow.rs
parentbb37bc1c6189b69b56ed7722b8e3e9aa2d6c1500 (diff)
parent6511e4675345887bd8f60bfd8296a1451a08f73c (diff)
downloadrust-1855aff8d78e74a7ec5140dbd7bd18fc3566095a.tar.gz
rust-1855aff8d78e74a7ec5140dbd7bd18fc3566095a.zip
Auto merge of #45524 - alexcrichton:improve-park-unpark, r=dtolnay
std: Optimize thread park/unpark implementation

This is an adaptation of alexcrichton/futures-rs#597 for the standard library.
The goal here is to avoid locking a mutex on the "fast path" for thread
park/unpark where you're waking up a thread that isn't sleeping or otherwise
trying to park a thread that's already been notified. Mutex performance varies
quite a bit across platforms so this should provide a nice consistent speed
boost for the fast path of these functions.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions