#include <sys/types.h>
-#include <glibmm/thread.h>
+#include <glibmm/threads.h>
#include "pbd/undo.h"
#include "pbd/stateful.h"
Location (const Location& other);
Location (Session &, const XMLNode&);
Location* operator= (const Location& other);
+
+ bool operator==(const Location& other);
bool locked() const { return _locked; }
void lock ();
int set_current (Location *, bool want_lock = true);
Location *current () const { return current_location; }
- Location* first_location_before (framepos_t, bool include_special_ranges = false);
- Location* first_location_after (framepos_t, bool include_special_ranges = false);
+ framepos_t first_mark_before (framepos_t, bool include_special_ranges = false);
+ framepos_t first_mark_after (framepos_t, bool include_special_ranges = false);
void marks_either_side (framepos_t const, framepos_t &, framepos_t &) const;
PBD::Signal1<void,const PBD::PropertyChange&> StateChanged;
template<class T> void apply (T& obj, void (T::*method)(LocationList&)) {
- Glib::Mutex::Lock lm (lock);
+ Glib::Threads::Mutex::Lock lm (lock);
(obj.*method)(locations);
}
template<class T1, class T2> void apply (T1& obj, void (T1::*method)(LocationList&, T2& arg), T2& arg) {
- Glib::Mutex::Lock lm (lock);
+ Glib::Threads::Mutex::Lock lm (lock);
(obj.*method)(locations, arg);
}
LocationList locations;
Location *current_location;
- mutable Glib::Mutex lock;
+ mutable Glib::Threads::Mutex lock;
int set_current_unlocked (Location *);
void location_changed (Location*);