fn write(&mut self, log: LogEnum, notifier: Notifier<A>) -> Ptr<Log<A>, A> {
        #[cfg(not(feature = "use_ntstore"))] {
            self.logs[self.len] = Log::new(log, notifier);
        }
        #[cfg(feature = "use_ntstore")] unsafe {
            std::intrinsics::nontemporal_store(&mut self.logs[self.len], Log::new(log, notifier));
        }
        persist_with_log::<_,A>(&self.logs[self.len], std::mem::size_of::<Log<A>>(), false);

        let log = unsafe { Ptr::new_unchecked(&self.logs[self.len]) };
        self.len += 1;
        log
    }
/// Writes a new log to the journal
Writes a new log to the journal
Writes a new log to the journal
fn write(&mut self, log: LogEnum, notifier: Notifier<A>) -> Ptr<Log<A>, A> {
        #[cfg(not(feature = "use_ntstore"))] {
            self.logs[self.len] = Log::new(log, notifier);
        }
        #[cfg(feature = "use_ntstore")] unsafe {
            std::intrinsics::nontemporal_store(&mut self.logs[self.len], Log::new(log, notifier));
        }
        persist_with_log::<_,A>(&self.logs[self.len], std::mem::size_of::<Log<A>>(), false);
        let log = unsafe { Ptr::new_unchecked(&self.logs[self.len]) };
        self.len += 1;
        log
    }
fn write ( & mut self , log : LogEnum , notifier : Notifier < A > ) -> Ptr < Log < A > , A > { # [ cfg ( not ( feature " " ) ) ] { self . logs [ self . len ] = Log :: new ( log , notifier ) ; } # [ cfg ( feature " " ) ] unsafe { std :: intrinsics :: nontemporal_store ( & mut self . logs [ self . len ] , Log :: new ( log , notifier ) ) ; } persist_with_log :: < _ , A > ( & self . logs [ self . len ] , std :: mem :: size_of :: < Log < A > > ( ) , false ) ; let log = unsafe { Ptr :: new_unchecked ( & self . logs [ self . len ] ) } ; self . len += 1 ; log }
Writes a new log to the journal
Writes a new log to the journal
&mut self
log
LogEnum
notifier
Notifier<A>