Fix VST state-lock SNAFU (effSetChunk and process are exclusive)
[ardour.git] / libs / ardour / ardour / vst_types.h
index 936cab6173fb1120da85f67b896044e5ead94bdf..0b8bcb62736d2637fba90c0668ff606dd705f7d0 100644 (file)
@@ -129,6 +129,7 @@ struct LIBARDOUR_API _VSTState
 
        struct _VSTState * next;
        pthread_mutex_t    lock;
+       pthread_mutex_t    state_lock;
        pthread_cond_t     window_status_change;
        pthread_cond_t     plugin_dispatcher_called;
        pthread_cond_t     window_created;
@@ -136,6 +137,7 @@ struct LIBARDOUR_API _VSTState
 
        void init () {
                pthread_mutex_init (&lock, 0);
+               pthread_mutex_init (&state_lock, 0);
                pthread_cond_init (&window_status_change, 0);
                pthread_cond_init (&plugin_dispatcher_called, 0);
                pthread_cond_init (&window_created, 0);