Rearrange SGX split module files

In #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.
This commit is contained in:
Jethro Beekman 2021-05-07 13:40:43 +02:00
parent ac888e8675
commit bfa84842e5
4 changed files with 7 additions and 6 deletions

View File

@ -13,13 +13,8 @@
#[cfg(test)]
mod tests;
/// A doubly-linked list where callers are in charge of memory allocation
/// of the nodes in the list.
mod unsafe_list;
/// Trivial spinlock-based implementation of `sync::Mutex`.
// FIXME: Perhaps use Intel TSX to avoid locking?
mod spin_mutex;
mod unsafe_list;
use crate::num::NonZeroUsize;
use crate::ops::{Deref, DerefMut};

View File

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

View File

@ -1,3 +1,6 @@
//! A doubly-linked list where callers are in charge of memory allocation
//! of the nodes in the list.
#[cfg(test)]
mod tests;