diff options
Diffstat (limited to 'src/server/Event.hpp')
-rw-r--r-- | src/server/Event.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/Event.hpp b/src/server/Event.hpp index 7e4a1cc1..f984b675 100644 --- a/src/server/Event.hpp +++ b/src/server/Event.hpp @@ -17,7 +17,8 @@ #ifndef INGEN_ENGINE_EVENT_HPP #define INGEN_ENGINE_EVENT_HPP -#include "raul/AtomicPtr.hpp" +#include <atomic> + #include "raul/Deletable.hpp" #include "raul/Noncopyable.hpp" #include "raul/Path.hpp" @@ -71,7 +72,7 @@ public: inline void set_time(SampleCount time) { _time = time; } /** Get the next event to be processed after this one. */ - Event* next() const { return _next.get(); } + Event* next() const { return _next.load(); } /** Set the next event to be processed after this one. */ void next(Event* ev) { _next = ev; } @@ -120,7 +121,7 @@ protected: } Engine& _engine; - Raul::AtomicPtr<Event> _next; + std::atomic<Event*> _next; SharedPtr<Interface> _request_client; int32_t _request_id; FrameTime _time; |