diff options
author | David Robillard <d@drobilla.net> | 2013-01-11 03:43:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-11 03:43:39 +0000 |
commit | 684eaf6b58e41f6758b160b882a6313faf0cff18 (patch) | |
tree | 1e18f25f29d6c99b3bad3a598cade3705fa5f078 /src/server | |
parent | a90eec5c87af4dec9f8f45223cd228cb7ca674c6 (diff) | |
download | ingen-684eaf6b58e41f6758b160b882a6313faf0cff18.tar.gz ingen-684eaf6b58e41f6758b160b882a6313faf0cff18.tar.bz2 ingen-684eaf6b58e41f6758b160b882a6313faf0cff18.zip |
Initialise atomics.
Unlike the old Raul classes, std::atomic<T*> does not automatically initialise to NULL.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4917 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/BufferFactory.cpp | 6 | ||||
-rw-r--r-- | src/server/Event.hpp | 2 | ||||
-rw-r--r-- | src/server/PostProcessor.cpp | 2 | ||||
-rw-r--r-- | src/server/PreProcessor.cpp | 3 |
4 files changed, 12 insertions, 1 deletions
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp index 924a6f9f..b15e0bb7 100644 --- a/src/server/BufferFactory.cpp +++ b/src/server/BufferFactory.cpp @@ -26,7 +26,11 @@ namespace Ingen { namespace Server { BufferFactory::BufferFactory(Engine& engine, URIs& uris) - : _engine(engine) + : _free_audio(NULL) + , _free_control(NULL) + , _free_sequence(NULL) + , _free_object(NULL) + , _engine(engine) , _uris(uris) , _seq_size(0) , _silent_buffer(NULL) diff --git a/src/server/Event.hpp b/src/server/Event.hpp index f984b675..171e7cc9 100644 --- a/src/server/Event.hpp +++ b/src/server/Event.hpp @@ -83,6 +83,7 @@ public: protected: Event(Engine& engine, SharedPtr<Interface> client, int32_t id, FrameTime time) : _engine(engine) + , _next(NULL) , _request_client(client) , _request_id(id) , _time(time) @@ -92,6 +93,7 @@ protected: /** Constructor for internal events only */ explicit Event(Engine& engine) : _engine(engine) + , _next(NULL) , _request_id(-1) , _time(0) , _status(NOT_PREPARED) diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp index b94e149c..69668f2b 100644 --- a/src/server/PostProcessor.cpp +++ b/src/server/PostProcessor.cpp @@ -28,6 +28,8 @@ namespace Server { PostProcessor::PostProcessor(Engine& engine) : _engine(engine) + , _head(NULL) + , _tail(NULL) , _max_time(0) { } diff --git a/src/server/PreProcessor.cpp b/src/server/PreProcessor.cpp index 15ca6cd0..dec6c2df 100644 --- a/src/server/PreProcessor.cpp +++ b/src/server/PreProcessor.cpp @@ -28,6 +28,9 @@ namespace Server { PreProcessor::PreProcessor() : Raul::Thread() , _sem(0) + , _head(NULL) + , _prepared_back(NULL) + , _tail(NULL) { start(); } |