Add note about using cells in the locks on the 'unsupported' platform.

This commit is contained in:
Mara Bos 2020-10-13 15:29:38 +02:00
parent f1c3edbfab
commit b26aa5d973
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
use crate::cell::Cell;
pub struct Mutex {
// This platform has no threads, so we can use a Cell here.
locked: Cell<bool>,
}

View File

@ -1,6 +1,7 @@
use crate::cell::Cell;
pub struct RWLock {
// This platform has no threads, so we can use a Cell here.
mode: Cell<isize>,
}