#include <stdint.h>
#include <string>
-#include <glibmm/thread.h>
+#include <glibmm/threads.h>
namespace PBD {
public:
ID ();
ID (std::string);
-
+ ID (const ID&);
+
+ void reset ();
+
bool operator== (const ID& other) const {
return _id == other._id;
}
return _id != other._id;
}
+ bool operator== (const std::string&) const;
+
ID& operator= (std::string);
+ ID& operator= (const ID&);
bool operator< (const ID& other) const {
return _id < other._id;
uint64_t _id;
int string_assign (std::string);
- static Glib::Mutex* counter_lock;
+ static Glib::Threads::Mutex* counter_lock;
static uint64_t _counter;
};