X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fid.cc;h=24cf02ab2ea6f2a0d9591355cb04e2d452a969d4;hb=02e38bab162da5887c39f63a90e4f8edf169d892;hp=d7ac1560a1c6698f7b37f0d18ec4531b04ceace4;hpb=4085309cdb07f011756a9ab90047037ef9ad8f20;p=ardour.git diff --git a/libs/pbd/id.cc b/libs/pbd/id.cc index d7ac1560a1..24cf02ab2e 100644 --- a/libs/pbd/id.cc +++ b/libs/pbd/id.cc @@ -18,7 +18,6 @@ */ #include -#include #include #ifndef __STDC_FORMAT_MACROS @@ -32,14 +31,14 @@ using namespace std; using namespace PBD; -Glib::Mutex* ID::counter_lock = 0; +Glib::Threads::Mutex* ID::counter_lock = 0; uint64_t ID::_counter = 0; void ID::init () { if (!counter_lock) - counter_lock = new Glib::Mutex; + counter_lock = new Glib::Threads::Mutex; } ID::ID () @@ -60,7 +59,7 @@ ID::ID (string str) void ID::reset () { - Glib::Mutex::Lock lm (*counter_lock); + Glib::Threads::Mutex::Lock lm (*counter_lock); _id = _counter++; }