mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-02 15:34:12 +02:00
Change atomic type to int
This commit is contained in:
@@ -12,8 +12,8 @@ class FastQueue {
|
||||
char* buffer_;
|
||||
std::atomic_int* buffer_status_;
|
||||
|
||||
std::atomic_uint16_t write_slot_id_;
|
||||
std::atomic_uint16_t read_slot_id_;
|
||||
std::atomic_int write_slot_id_;
|
||||
std::atomic_int read_slot_id_;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ FastQueue<T>::FastQueue(
|
||||
buffer_ = new char[slot_n_bytes_ * n_slots_];
|
||||
buffer_status_ = new atomic_int[n_slots];
|
||||
|
||||
// TODO: Are atomic variables initialized?
|
||||
for (size_t i=0; i < n_slots_; i++) {
|
||||
buffer_status_[i] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user