mirror of
https://github.com/bspeice/aeron-rs
synced 2025-07-05 07:44:51 -04:00
Finally able to terminate a driver.
Need to write a test for it, but it's working locally.
This commit is contained in:
@ -19,6 +19,9 @@
|
||||
//! +-----------------------------+
|
||||
//! ```
|
||||
|
||||
use crate::util::bit;
|
||||
use std::mem::size_of;
|
||||
|
||||
/// The CnC file metadata header. Layout:
|
||||
///
|
||||
/// ```text
|
||||
@ -61,6 +64,10 @@ pub struct MetaDataDefinition {
|
||||
_pid: i64,
|
||||
}
|
||||
|
||||
/// Length of the metadata block in a CnC file. Note that it's not equivalent
|
||||
/// to the actual struct length.
|
||||
pub const META_DATA_LENGTH: usize = bit::align_usize(size_of::<MetaDataDefinition>(), bit::CACHE_LINE_LENGTH * 2);
|
||||
|
||||
/// Version code for the Aeron CnC file format
|
||||
pub const CNC_VERSION: i32 = crate::sematic_version_compose(0, 0, 16);
|
||||
|
||||
|
@ -5,9 +5,9 @@ use crate::util::{bit, AeronError, IndexT, Result};
|
||||
/// Description of the Ring Buffer schema.
|
||||
pub mod buffer_descriptor {
|
||||
use crate::client::concurrent::atomic_buffer::AtomicBuffer;
|
||||
use crate::util::bit::is_power_of_two;
|
||||
use crate::util::bit::{is_power_of_two, CACHE_LINE_LENGTH};
|
||||
use crate::util::AeronError::IllegalArgument;
|
||||
use crate::util::{IndexT, Result, CACHE_LINE_LENGTH};
|
||||
use crate::util::{IndexT, Result};
|
||||
|
||||
// QUESTION: Why are these offsets so large when we only ever use i64 types?
|
||||
|
||||
|
Reference in New Issue
Block a user