summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-14 21:47:07 -0400
committerDavid Robillard <d@drobilla.net>2016-10-14 21:47:07 -0400
commitc7c64abd524911ee8bf3e2be9d8aec38b1b4d18a (patch)
tree29891519954fdfe681bb11d3a566c89fcd52f31c /ingen
parent4b04a51fc7a7dbd1ea62f81691d4ef923278fb1d (diff)
downloadingen-c7c64abd524911ee8bf3e2be9d8aec38b1b4d18a.tar.gz
ingen-c7c64abd524911ee8bf3e2be9d8aec38b1b4d18a.tar.bz2
ingen-c7c64abd524911ee8bf3e2be9d8aec38b1b4d18a.zip
Fix potential store deadlock
Diffstat (limited to 'ingen')
-rw-r--r--ingen/Store.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ingen/Store.hpp b/ingen/Store.hpp
index b8cdfd36..d9a52102 100644
--- a/ingen/Store.hpp
+++ b/ingen/Store.hpp
@@ -70,10 +70,12 @@ public:
const Raul::Symbol& symbol,
bool allow_zero=true) const;
- std::mutex& mutex() { return _mutex; }
+ typedef std::recursive_mutex Mutex;
+
+ Mutex& mutex() { return _mutex; }
private:
- std::mutex _mutex;
+ Mutex _mutex;
};
} // namespace Ingen