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/stacktrace.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/stacktrace.h')
-rw-r--r-- | libs/pbd/pbd/stacktrace.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/pbd/pbd/stacktrace.h b/libs/pbd/pbd/stacktrace.h index 40275fd536..94d07cab96 100644 --- a/libs/pbd/pbd/stacktrace.h +++ b/libs/pbd/pbd/stacktrace.h @@ -26,7 +26,7 @@ #include <iostream> #include <ostream> -#include <glibmm/thread.h> +#include <glibmm/threads.h> #include <list> #ifdef HAVE_EXECINFO @@ -50,7 +50,7 @@ class thing_with_backtrace #else allocation_backtrace_size = 0; #endif - Glib::Mutex::Lock lm (all_mutex); + Glib::Threads::Mutex::Lock lm (all_mutex); all.push_back (this); } @@ -62,7 +62,7 @@ class thing_with_backtrace #else allocation_backtrace_size = 0; #endif - Glib::Mutex::Lock lm (all_mutex); + Glib::Threads::Mutex::Lock lm (all_mutex); all.push_back (this); } @@ -70,7 +70,7 @@ class thing_with_backtrace if (allocation_backtrace_size) { delete [] allocation_backtrace; } - Glib::Mutex::Lock lm (all_mutex); + Glib::Threads::Mutex::Lock lm (all_mutex); all.remove (this); } @@ -105,11 +105,11 @@ private: void** allocation_backtrace; int allocation_backtrace_size; static std::list<thing_with_backtrace<T>* > all; - static Glib::StaticMutex all_mutex; + static Glib::Threads::Mutex all_mutex; }; template<typename T> std::list<PBD::thing_with_backtrace<T> *> PBD::thing_with_backtrace<T>::all; -template<typename T> Glib::StaticMutex PBD::thing_with_backtrace<T>::all_mutex = GLIBMM_STATIC_MUTEX_INIT; +template<typename T> Glib::Threads::Mutex PBD::thing_with_backtrace<T>::all_mutex; } // namespace PBD |