Verified Commit 0952f5e0 authored by 4lDO2's avatar 4lDO2 🖖
Browse files

Add #[repr(C)] to Ring.

parent dffe9652
......@@ -32,8 +32,9 @@ The current structure of the ring header, simplified, is defined as follows:
struct CachePadded<T>(pub T);
// Generic type parameter T omitted, for simplicity.
#[repr(C)]
pub struct Ring {
// used to relocate the ring from the static MMAP offsets,
// used to relocate the ring entries from the static MMAP offsets,
base_rel: usize,
// the number of accessible entries in the ring, must be a power of two.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment