diff options
author | David Robillard <d@drobilla.net> | 2016-10-14 21:47:07 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-14 21:47:07 -0400 |
commit | c7c64abd524911ee8bf3e2be9d8aec38b1b4d18a (patch) | |
tree | 29891519954fdfe681bb11d3a566c89fcd52f31c /ingen | |
parent | 4b04a51fc7a7dbd1ea62f81691d4ef923278fb1d (diff) | |
download | ingen-c7c64abd524911ee8bf3e2be9d8aec38b1b4d18a.tar.gz ingen-c7c64abd524911ee8bf3e2be9d8aec38b1b4d18a.tar.bz2 ingen-c7c64abd524911ee8bf3e2be9d8aec38b1b4d18a.zip |
Fix potential store deadlock
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/Store.hpp | 6 |
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 |