diff options
author | David Robillard <d@drobilla.net> | 2022-06-29 09:44:11 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-20 16:24:23 -0400 |
commit | cf72f2855fccaf1c579388bcdba2a219a9983d96 (patch) | |
tree | 8ce97ba5feeb262b77ff77f051e63a2107e0b08a /include/raul/Maid.hpp | |
parent | d3bb4e9c2dba3cebfa7ce9f37d32e54ec2fe14a3 (diff) | |
download | raul-cf72f2855fccaf1c579388bcdba2a219a9983d96.tar.gz raul-cf72f2855fccaf1c579388bcdba2a219a9983d96.tar.bz2 raul-cf72f2855fccaf1c579388bcdba2a219a9983d96.zip |
Remove redundant inline specifiers
Diffstat (limited to 'include/raul/Maid.hpp')
-rw-r--r-- | include/raul/Maid.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/raul/Maid.hpp b/include/raul/Maid.hpp index f50bc24..db957d3 100644 --- a/include/raul/Maid.hpp +++ b/include/raul/Maid.hpp @@ -100,13 +100,10 @@ public: Maid(Maid&&) = delete; Maid& operator=(Maid&&) = delete; - inline ~Maid() { cleanup(); } + ~Maid() { cleanup(); } /// Return false iff there is currently no garbage - inline bool empty() const - { - return !_disposed.load(std::memory_order_relaxed); - } + bool empty() const { return !_disposed.load(std::memory_order_relaxed); } /** Enqueue an object for deletion when cleanup() is called next. @@ -114,7 +111,7 @@ public: This is thread-safe, and real-time safe assuming reasonably low contention. */ - inline void dispose(Disposable* obj) + void dispose(Disposable* obj) { if (obj) { // Atomically add obj to the head of the disposed list @@ -133,7 +130,7 @@ public: Obviously not real-time safe, but may be called while other threads are calling dispose(). */ - inline void cleanup() + void cleanup() { // Atomically get the head of the disposed list Disposable* const disposed = |