Skip to content

Commit 279e563

Browse files
committed
Implements !Unpin on TailQueue and TailQueueEntry
1 parent f9738a4 commit 279e563

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/queue/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
use core::marker::PhantomPinned;
2+
13
/// Represents a struct produced by `TAILQ_HEAD`.
24
#[repr(C)]
35
pub struct TailQueue<T> {
46
pub first: *mut T, // tqh_first
57
pub last: *mut *mut T, // tqh_last
8+
pub pin: PhantomPinned,
69
}
710

811
/// Represents a struct produced by `TAILQ_ENTRY`.
912
#[repr(C)]
1013
pub struct TailQueueEntry<T> {
1114
pub next: *mut T, // tqe_next
1215
pub prev: *mut *mut T, // tqe_prev
16+
pub pin: PhantomPinned,
1317
}

0 commit comments

Comments
 (0)