Skip to content

Commit

Permalink
minor tweaks to FinalRingBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed May 15, 2024
1 parent 1b5e789 commit 3e9b8f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/util_buffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ bool XCircleBuffer<T>::get( T * result )
// desc: hopefully this will the last lock-free queue we need to implement...
// hopefully not like Final Fantasy which has 15 sequels to date
//
// adapted from:
// added 1.5.2.5 (ge) | adapted from:
// Lock-Free Ring Buffer (LFRB) for embedded systems
// GitHub: https://github.com/QuantumLeaps/lock-free-ring-buffer
// SPDX-License-Identifier: MIT
Expand All @@ -750,7 +750,8 @@ bool XCircleBuffer<T>::get( T * result )
* correctly aligned for "atomic" access. In practice, most C compilers
* should provide such natural alignment (by inserting some padding into the
* ::FinalRingBuffer class/struct, if necessary). */
#define FinalBufferAtomic std::atomic<t_CKUINT>
//-----------------------------------------------------------------------------
typedef std::atomic_ulong FinalBufferAtomic;
//-----------------------------------------------------------------------------
template <typename T>
class FinalRingBuffer
Expand Down

0 comments on commit 3e9b8f3

Please sign in to comment.