X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fid.h;h=6a9332be53b603fe6c6ef7a9bd016285ef8405a9;hb=0aac62e013e15e380001dafae39d554f8765a4a1;hp=7a32a29002c6f24004e659f50737c0ef0866f1e7;hpb=222c18d18afe76228775c0d73004e9c77bea611e;p=ardour.git diff --git a/libs/pbd/pbd/id.h b/libs/pbd/pbd/id.h index 7a32a29002..6a9332be53 100644 --- a/libs/pbd/pbd/id.h +++ b/libs/pbd/pbd/id.h @@ -23,7 +23,7 @@ #include #include -#include +#include namespace PBD { @@ -33,6 +33,8 @@ class ID { ID (std::string); ID (const ID&); + void reset (); + bool operator== (const ID& other) const { return _id == other._id; } @@ -61,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; };