mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-10 17:33:53 +01:00
Make id counters atomic
This commit is contained in:
1 parent
c49ace75a8
commit
44477d4453
1 file changed
+2
-2
@@ -12,8 +12,8 @@ class FastQueue {
|
||||
char* buffer_;
|
||||
std::atomic_int* buffer_status_;
|
||||
|
||||
uint16_t write_slot_id_;
|
||||
uint16_t read_slot_id_;
|
||||
std::atomic_uint16_t write_slot_id_;
|
||||
std::atomic_uint16_t read_slot_id_;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in new issue
Block a user