Skip to content

Commit

Permalink
Apply changes requested by Restyled bot
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Osterfeld <[email protected]>
  • Loading branch information
restyled-commits authored and wirew0rm committed Sep 30, 2024
1 parent 437793b commit b10bf28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/disruptor/include/disruptor/RingBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static const std::int32_t rbPad = 128 / sizeof(int *);
* \tparam T implementation storing the data for sharing during exchange or parallel coordination of an event.
*/
template<typename T, std::size_t SIZE, WaitStrategy WAIT_STRATEGY, template<std::size_t, typename> typename CLAIM_STRATEGY = MultiThreadedStrategy>
requires opencmw::is_power2_v<SIZE>
requires opencmw::is_power2_v<SIZE>
class RingBuffer : public EventStore<T>, public std::enable_shared_from_this<RingBuffer<T, SIZE, WAIT_STRATEGY, CLAIM_STRATEGY>> {
const uint8_t padding0[56]{}; // NOSONAR
mutable std::array<T, SIZE + 2 * rbPad> _entries; // N.B. includes extra padding in front and back
Expand Down Expand Up @@ -160,9 +160,9 @@ class EventPoller {
std::int64_t _lastAvailableSequence = kInitialCursorValue;

public:
EventPoller() = delete;
EventPoller(const EventPoller &) = delete;
EventPoller(const EventPoller &&) = delete;
EventPoller() = delete;
EventPoller(const EventPoller &) = delete;
EventPoller(const EventPoller &&) = delete;
void operator=(const EventPoller &) = delete;
EventPoller(const std::shared_ptr<RingBuffer<T, SIZE, WAIT_STRATEGY, CLAIM_STRATEGY>> &dataProvider,
const std::shared_ptr<Sequence> &sequence,
Expand Down
4 changes: 2 additions & 2 deletions src/disruptor/include/disruptor/Sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class Sequence {
alignas(kCacheLine) std::atomic<std::int64_t> _fieldsValue{};

public:
Sequence(const Sequence &) = delete;
Sequence(const Sequence &&) = delete;
Sequence(const Sequence &) = delete;
Sequence(const Sequence &&) = delete;
void operator=(const Sequence &) = delete;
explicit Sequence(std::int64_t initialValue = kInitialCursorValue) noexcept
: _fieldsValue(initialValue) {}
Expand Down

0 comments on commit b10bf28

Please sign in to comment.