mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Add the default mark type for LockedXArray
This commit is contained in:
parent
c519db518f
commit
ac1de89d31
@ -192,7 +192,7 @@ impl<P: NonNullPtr + Sync + Send, M> Drop for XArray<P, M> {
|
|||||||
///
|
///
|
||||||
/// The locked `XArray` is able to create `CursorMut` and do mutable operations.
|
/// The locked `XArray` is able to create `CursorMut` and do mutable operations.
|
||||||
/// There can only be one locked `XArray` at the same time.
|
/// There can only be one locked `XArray` at the same time.
|
||||||
pub struct LockedXArray<'a, P, M, G = PreemptDisabled>
|
pub struct LockedXArray<'a, P, M = NoneMark, G = PreemptDisabled>
|
||||||
where
|
where
|
||||||
P: NonNullPtr + Send + Sync,
|
P: NonNullPtr + Send + Sync,
|
||||||
G: SpinGuardian,
|
G: SpinGuardian,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user