We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1c3edb commit b26aa5dCopy full SHA for b26aa5d
library/std/src/sys/unsupported/mutex.rs
@@ -1,6 +1,7 @@
1
use crate::cell::Cell;
2
3
pub struct Mutex {
4
+ // This platform has no threads, so we can use a Cell here.
5
locked: Cell<bool>,
6
}
7
library/std/src/sys/unsupported/rwlock.rs
pub struct RWLock {
mode: Cell<isize>,
0 commit comments