We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb6f2d4 commit b518dc7Copy full SHA for b518dc7
library/std/src/sys/sgx/mutex.rs
@@ -8,6 +8,7 @@ pub struct Mutex {
8
inner: SpinMutex<WaitVariable<bool>>,
9
}
10
11
+// not movable: see UnsafeList implementation
12
pub type MovableMutex = Box<Mutex>;
13
14
// Implementation according to “Operating Systems: Three Easy Pieces”, chapter 28
library/std/src/sys/sgx/waitqueue/unsafe_list.rs
@@ -23,6 +23,7 @@ impl<T> UnsafeListEntry<T> {
23
24
25
26
+// WARNING: self-referential struct!
27
pub struct UnsafeList<T> {
28
head_tail: NonNull<UnsafeListEntry<T>>,
29
head_tail_entry: Option<UnsafeListEntry<T>>,
0 commit comments