X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fid.h;h=6a9332be53b603fe6c6ef7a9bd016285ef8405a9;hb=0aac62e013e15e380001dafae39d554f8765a4a1;hp=3f87a65e0d57f91dbb7d7ba6d0d590fdfc85fcfe;hpb=2e8f80e37a7d20deb3f138cd72c26f8c6de9d1ab;p=ardour.git diff --git a/libs/pbd/pbd/id.h b/libs/pbd/pbd/id.h index 3f87a65e0d..6a9332be53 100644 --- a/libs/pbd/pbd/id.h +++ b/libs/pbd/pbd/id.h @@ -23,7 +23,7 @@ #include #include -#include +#include namespace PBD { @@ -31,7 +31,10 @@ class ID { public: ID (); ID (std::string); - + ID (const ID&); + + void reset (); + bool operator== (const ID& other) const { return _id == other._id; } @@ -40,7 +43,10 @@ class 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; @@ -57,7 +63,7 @@ class ID { uint64_t _id; int string_assign (std::string); - static Glib::Mutex* counter_lock; + static Glib::Threads::Mutex* counter_lock; static uint64_t _counter; };