about summary refs log tree commit diff
path: root/library/std/src/sys_common/thread_parker/generic.rs
AgeCommit message (Collapse)AuthorLines
2022-12-29std: unify id-based thread parking implementationsjoboet-125/+0
2022-04-25std: directly use pthread in UNIX parker implementationjoboet-9/+15
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.
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-1/+1
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2021-12-14Fix a bunch of typosFrank Steffahn-3/+3
2020-09-27Move thread parker to sys_common.Mara Bos-0/+119