File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ use std::{
99 sync:: { atomic:: AtomicU64 , Arc } ,
1010} ;
1111
12- const MAGIC : u64 = 0x7368_6171_6d70_6d63 ; // b"shaqmpmc"
12+ /// Unique identifier for MPMC queue in shared memory.
13+ const MAGIC : u64 = u64:: from_be_bytes ( * b"shaqmpmc" ) ;
1314
1415pub struct Producer < T > {
1516 queue : SharedQueue < T > ,
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ use std::{
1010 } ,
1111} ;
1212
13- const MAGIC : u64 = 0x7368_6171_7370_7363 ; // b"shaqspsc"
13+ /// Unique identifier for SPSC queue in shared memory.
14+ const MAGIC : u64 = u64:: from_be_bytes ( * b"shaqspsc" ) ;
1415
1516/// Calculates the minimum file size required for a queue with given capacity.
1617/// Note that file size MAY need to be increased beyond this to account for
You can’t perform that action at this time.
0 commit comments