X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fsignals.h;h=140ea014e8040d3431c0f47aaa78dcb0ac4ff584;hb=54bf06e63cee78dfa218f604d862e577d0f5754c;hp=dc53b31f94422047a1865ce8d01626c6a8b8f81a;hpb=23a615a6dbf84a47ca3dbdb2b1f4a382cf6c0820;p=ardour.git diff --git a/libs/pbd/pbd/signals.h b/libs/pbd/pbd/signals.h index dc53b31f94..140ea014e8 100644 --- a/libs/pbd/pbd/signals.h +++ b/libs/pbd/pbd/signals.h @@ -21,13 +21,18 @@ #define __pbd_signals_h__ #include -#include +#include + +#ifdef nil +#undef nil +#endif + +#include #include #include #include #include -#include #include #include @@ -44,7 +49,7 @@ public: virtual void disconnect (boost::shared_ptr) = 0; protected: - boost::mutex _mutex; + Glib::Threads::Mutex _mutex; }; class Connection : public boost::enable_shared_from_this @@ -54,7 +59,7 @@ public: void disconnect () { - boost::mutex::scoped_lock lm (_mutex); + Glib::Threads::Mutex::Lock lm (_mutex); if (_signal) { _signal->disconnect (shared_from_this ()); _signal = 0; @@ -63,12 +68,12 @@ public: void signal_going_away () { - boost::mutex::scoped_lock lm (_mutex); + Glib::Threads::Mutex::Lock lm (_mutex); _signal = 0; } private: - boost::mutex _mutex; + Glib::Threads::Mutex _mutex; SignalBase* _signal; }; @@ -147,7 +152,7 @@ class ScopedConnectionList : public boost::noncopyable one from another. */ - Glib::Mutex _lock; + Glib::Threads::Mutex _lock; typedef std::list ConnectionList; ConnectionList _list;