pub struct Daemon { /* private fields */ }Expand description
The Daemon manages background tasks like TLS-to-Core promotion and QSBR memory reclamation.
Implementations§
Source§impl Daemon
impl Daemon
pub fn join(&mut self)
Sourcepub fn spawn<K, V, P, const CAP2: usize, const CAP1: usize, const CAP0: usize, const TOTAL_CAP: usize>(
core: &'static DualCacheCore<K, V, P, CAP2, CAP1, CAP0, TOTAL_CAP>,
rx: Arc<BoundedQueue<DaemonMessage<K, V>, 65536>>,
broadcast_txs: Vec<Arc<BoundedQueue<(usize, u8), 1024>>>,
daemon_node: *mut ThreadStateNode,
) -> Self
pub fn spawn<K, V, P, const CAP2: usize, const CAP1: usize, const CAP0: usize, const TOTAL_CAP: usize>( core: &'static DualCacheCore<K, V, P, CAP2, CAP1, CAP0, TOTAL_CAP>, rx: Arc<BoundedQueue<DaemonMessage<K, V>, 65536>>, broadcast_txs: Vec<Arc<BoundedQueue<(usize, u8), 1024>>>, daemon_node: *mut ThreadStateNode, ) -> Self
Spawn the daemon thread. Returns the Daemon handle.
Auto Trait Implementations§
impl !RefUnwindSafe for Daemon
impl !UnwindSafe for Daemon
impl Freeze for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl UnsafeUnpin for Daemon
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more