diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-07-25 17:48:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-07-25 17:48:55 +0000 |
commit | 3cd8138a419cb165f56070ace0b21a1e63ec5a43 (patch) | |
tree | 51efe9abff24a1367be227aebf8e2901433b0b88 /libs/pbd/pbd/pool.h | |
parent | eb6e352dd0a307badf68ae4a216d15c03b4685de (diff) |
convert from Glib:: to Glib::Threads for all thread-related API
git-svn-id: svn://localhost/ardour2/branches/3.0@13084 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/pool.h')
-rw-r--r-- | libs/pbd/pbd/pool.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/pbd/pbd/pool.h b/libs/pbd/pbd/pool.h index ab06343b4a..fc8454cee7 100644 --- a/libs/pbd/pbd/pool.h +++ b/libs/pbd/pbd/pool.h @@ -23,7 +23,7 @@ #include <vector> #include <string> -#include <glibmm/thread.h> +#include <glibmm/threads.h> #include "pbd/ringbuffer.h" @@ -59,7 +59,7 @@ class SingleAllocMultiReleasePool : public Pool virtual void release (void *); private: - Glib::Mutex* m_lock; + Glib::Threads::Mutex m_lock; }; @@ -73,7 +73,7 @@ class MultiAllocSingleReleasePool : public Pool virtual void release (void *); private: - Glib::Mutex* m_lock; + Glib::Threads::Mutex m_lock; }; class PerThreadPool; @@ -106,7 +106,7 @@ class PerThreadPool public: PerThreadPool (); - GPrivate* key() const { return _key; } + const Glib::Threads::Private<CrossThreadPool>& key() const { return _key; } void create_per_thread_pool (std::string name, unsigned long item_size, unsigned long nitems); CrossThreadPool* per_thread_pool (); @@ -115,13 +115,13 @@ class PerThreadPool void add_to_trash (CrossThreadPool *); private: - GPrivate* _key; + Glib::Threads::Private<CrossThreadPool> _key; std::string _name; unsigned long _item_size; unsigned long _nitems; /** mutex to protect either changes to the _trash variable, or writes to the RingBuffer */ - Glib::Mutex _trash_mutex; + Glib::Threads::Mutex _trash_mutex; RingBuffer<CrossThreadPool*>* _trash; }; |