Skip to content

Commit

Permalink
Merge pull request #111 from hsel-netsys/fix-ringbuffer
Browse files Browse the repository at this point in the history
fix(ringbuffer.hpp): access m_mutex of other RingBuffer correctly
  • Loading branch information
JKRhb authored Sep 12, 2024
2 parents e44b335 + 0e85b04 commit 85a41b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/iceflow/ringbuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class RingBuffer {
*@param other The instance to be copied from
*/
RingBuffer(RingBuffer const &other) {
std::lock_guard<std::mutex> lock(other->m__mutex);
std::lock_guard<std::mutex> lock(other.m_mutex);
m_queue = other.m_queue;
}

Expand Down

0 comments on commit 85a41b0

Please sign in to comment.