Mara Bos
ac5aa1ded5
Use Drop instead of destroy() for locks.
2022-06-03 16:45:47 +02:00
Mara Bos
4212de63ab
Use a single ReentrantMutex implementation on all platforms.
2022-04-16 11:30:22 +02:00
Mara Bos
ac6996345d
Move pthread locks to own module.
2022-03-21 15:51:25 +01:00
Mara Bos
67c18fdec5
Use Pin for the 'don't move' requirement of ReentrantMutex.
...
The code in io::stdio before this change misused the ReentrantMutexes,
by calling init() on them and moving them afterwards. Now that
ReentrantMutex requires Pin for init(), this mistake is no longer easy
to make.
2020-12-08 22:57:57 +01:00
Mara Bos
9dc7f13c39
Remove unnecessary import of crate::marker in std::sys_common::remutex.
...
It was used for marker::Send, but Send is already in scope.
2020-12-08 22:57:49 +01:00
Mara Bos
13dc237037
Remove workaround for deref issue that no longer exists.
...
The double underscores were used to work around issue #12808 , which was
solved in 2016.
2020-09-24 20:50:09 +02:00
Lzu Tao
a4e926daee
std: move "mod tests/benches" to separate files
...
Also doing fmt inplace as requested.
2020-08-31 02:56:59 +00:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00