We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f1353e commit dc81cbdCopy full SHA for dc81cbd
library/std/src/sys/windows/mutex.rs
@@ -29,7 +29,10 @@ pub struct Mutex {
29
lock: AtomicUsize,
30
}
31
32
-pub type MovableMutex = Box<Mutex>;
+// Windows SRW Locks are movable (while not borrowed).
33
+// ReentrantMutexes (in Inner) are not, but those are stored indirectly through
34
+// a Box, so do not move when the Mutex it self is moved.
35
+pub type MovableMutex = Mutex;
36
37
unsafe impl Send for Mutex {}
38
unsafe impl Sync for Mutex {}
0 commit comments