Skip to content

Commit

Permalink
chore: remove unnecessary inline keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Aug 16, 2024
1 parent de6de37 commit 7173d7f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/control/controlvalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ControlValueAtomicBase {
"cRingSize is not a power of two; required for optimal alignment");

public:
inline T getValue() const {
T getValue() const {
T value;
std::size_t index = m_readIndex.load(std::memory_order_relaxed) % cRingSize;
while (!m_ring[index].tryGet(&value)) {
Expand All @@ -95,7 +95,7 @@ class ControlValueAtomicBase {
return value;
}

inline void setValue(const T& value) {
void setValue(const T& value) {
// Test if we can read atomic
// This test is const and will be mad only at compile time
std::size_t index;
Expand Down Expand Up @@ -127,12 +127,11 @@ class ControlValueAtomicBase {
template<typename T, std::size_t cRingSize>
class ControlValueAtomicBase<T, cRingSize, true> {
public:
inline T getValue() const {
T getValue() const {
return m_value;
}


inline void setValue(const T& value) {
void setValue(const T& value) {
m_value = value;
}

Expand Down

0 comments on commit 7173d7f

Please sign in to comment.