summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index e55acf6..bf6fc7b 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -30,6 +30,7 @@
#include <cstdio>
#include <cassert>
#include <cstring>
+#include <mutex>
#include <event.h>
#include <audiotypes.h>
@@ -267,7 +268,7 @@ void DrumGizmo::getSamples(int ch, int pos, sample_t* s, size_t sz)
}
{
- MutexAutolock l(af.mutex);
+ std::lock_guard<std::mutex> guard(af.mutex);
size_t n = 0; // default start point is 0.