about summary refs log tree commit diff
path: root/library/std/src/sys/unix/mutex.rs
AgeCommit message (Collapse)AuthorLines
2022-03-21Move pthread locks to own module.Mara Bos-144/+0
2020-10-20Check that pthread mutex initialization succeededTomasz Miąsko-17/+22
If pthread mutex initialization fails, the failure will go unnoticed unless debug assertions are enabled. Any subsequent use of mutex will also silently fail, since return values from lock & unlock operations are similarly checked only through debug assertions. In some implementations the mutex initialization requires a memory allocation and so it does fail in practice. Check that initialization succeeds to ensure that mutex guarantees mutual exclusion.
2020-10-02Make it possible to have unboxed mutexes on specific platforms.Mara Bos-0/+2
This commit keeps all mutexes boxed on all platforms, but makes it trivial to remove the box on some platforms later.
2020-07-27mv std libs to library/mark-0/+137