Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ak5k committed Feb 18, 2022
1 parent a3f3f58 commit 16c46c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ static bool Do(int command, int val)

void Dump()
{
std::scoped_lock<std::mutex> lock {m};
std::time_t rawtime;
std::tm* timeinfo;
char buffer[80];
Expand Down Expand Up @@ -140,6 +141,7 @@ const char* defstring_Get =

static bool Clear(const char* idStringInOptional)
{
std::scoped_lock<std::mutex> lock {m};
std::string s {idStringInOptional};
if (s.empty()) {
controlMap.clear();
Expand Down Expand Up @@ -176,6 +178,7 @@ bool Map(
control > NUMCONTROLTYPES) {
return false;
}
std::scoped_lock<std::mutex> lk {m};
std::string fxIdString {fxId};
ControlTarget currentControlTarget;
currentControlTarget.paramId = std::string(paramId);
Expand Down

0 comments on commit 16c46c9

Please sign in to comment.