Skip to content

Commit

Permalink
Merge pull request #6 from austinhartzheim/state-repr-c
Browse files Browse the repository at this point in the history
Add repr(C) attribute for State type
  • Loading branch information
bocharov authored Sep 28, 2023
2 parents e41fefa + d3070c5 commit 1d142f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const STATE_SIZE: usize = mem::size_of::<State>();
const SLEEP_DURATION: Duration = Duration::from_secs(1);

/// State stored in memory for synchronization using atomics
#[repr(C)]
pub(crate) struct State {
/// Current data instance version
version: AtomicU64,
Expand Down

0 comments on commit 1d142f0

Please sign in to comment.