VST threading: prevent concurrent effSetChunk and process()
authorRobin Gareus <robin@gareus.org>
Sat, 17 Sep 2016 11:46:30 +0000 (13:46 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 17 Sep 2016 11:46:30 +0000 (13:46 +0200)
commit6ad519ce8e8367f61187998dc8bb88dce60e7098
tree8c88380ef1e70a8eda5f494b8c8b87c56e23092f
parenta1fae47c1529f724ffa8678361ddc9addabdb7af
VST threading: prevent concurrent effSetChunk and process()

This is a potential fix for unreliable preset load/restore.
(http://mixbus.harrisonconsoles.com/forum/thread-1970-post-21486.html#pid21486)

Since a Glib Mutex can't be copy-constructed an explicit copy c'tor
is needed.
libs/ardour/ardour/vst_plugin.h
libs/ardour/vst_plugin.cc