summaryrefslogtreecommitdiffstats
path: root/src/gui/ThreadedLoader.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-12 23:38:03 +0000
committerDavid Robillard <d@drobilla.net>2013-01-12 23:38:03 +0000
commitdf1447c665e6c3631961297a9d3e9aff4e94c47f (patch)
treec0ff117c362e6d571f430f886ab62f372b59af08 /src/gui/ThreadedLoader.hpp
parentbb335dca695273622b7a4ebbefbe9e089edb9ab4 (diff)
downloadingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.gz
ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.bz2
ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.zip
Remove Raul::SharedPtr and switch to std::shared_ptr.
Use project local short type aliases for shared_ptr and friends. Move Raul::Disposable and Raul::Manageable into Raul::Maid. Use sets to store machina nodes and edges to avoid O(n) searches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4939 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/ThreadedLoader.hpp')
-rw-r--r--src/gui/ThreadedLoader.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/ThreadedLoader.hpp b/src/gui/ThreadedLoader.hpp
index afca29a9..815cfeec 100644
--- a/src/gui/ThreadedLoader.hpp
+++ b/src/gui/ThreadedLoader.hpp
@@ -47,8 +47,8 @@ namespace GUI {
class ThreadedLoader : public Raul::Thread
{
public:
- ThreadedLoader(App& app,
- SharedPtr<Interface> engine);
+ ThreadedLoader(App& app,
+ SPtr<Interface> engine);
~ThreadedLoader();
@@ -58,25 +58,25 @@ public:
boost::optional<Raul::Symbol> engine_symbol,
boost::optional<Node::Properties> engine_data);
- void save_graph(SharedPtr<const Client::GraphModel> model,
- const std::string& filename);
+ void save_graph(SPtr<const Client::GraphModel> model,
+ const std::string& filename);
- SharedPtr<Serialisation::Parser> parser();
+ SPtr<Serialisation::Parser> parser();
private:
- void save_graph_event(SharedPtr<const Client::GraphModel> model,
- const std::string& filename);
+ void save_graph_event(SPtr<const Client::GraphModel> model,
+ const std::string& filename);
/** Returns nothing and takes no parameters (because they have all been bound) */
typedef sigc::slot<void> Closure;
void _run();
- App& _app;
- Raul::Semaphore _sem;
- SharedPtr<Interface> _engine;
- Glib::Mutex _mutex;
- std::list<Closure> _events;
+ App& _app;
+ Raul::Semaphore _sem;
+ SPtr<Interface> _engine;
+ Glib::Mutex _mutex;
+ std::list<Closure> _events;
};
} // namespace GUI