Skip to content

Commit bfa8484

Browse files
author
Jethro Beekman
committed
Rearrange SGX split module files
In rust-lang#75979 several inlined modules were split out into multiple files. This PR keeps the multiple files but moves a few things around to organize things in a coherent way.
1 parent ac888e8 commit bfa8484

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

library/std/src/sys/sgx/waitqueue.rs renamed to library/std/src/sys/sgx/waitqueue/mod.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@
1313
#[cfg(test)]
1414
mod tests;
1515

16-
/// A doubly-linked list where callers are in charge of memory allocation
17-
/// of the nodes in the list.
18-
mod unsafe_list;
19-
20-
/// Trivial spinlock-based implementation of `sync::Mutex`.
21-
// FIXME: Perhaps use Intel TSX to avoid locking?
2216
mod spin_mutex;
17+
mod unsafe_list;
2318

2419
use crate::num::NonZeroUsize;
2520
use crate::ops::{Deref, DerefMut};

library/std/src/sys/sgx/waitqueue/spin_mutex.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Trivial spinlock-based implementation of `sync::Mutex`.
2+
// FIXME: Perhaps use Intel TSX to avoid locking?
3+
14
#[cfg(test)]
25
mod tests;
36

library/std/src/sys/sgx/waitqueue/unsafe_list.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! A doubly-linked list where callers are in charge of memory allocation
2+
//! of the nodes in the list.
3+
14
#[cfg(test)]
25
mod tests;
36

0 commit comments

Comments
 (0)