]> sigrok.org Git - libsigrokdecode.git/blobdiff - libsigrokdecode.h
decoder: terminate .wait() and .decode(), join threads for v3 instances
[libsigrokdecode.git] / libsigrokdecode.h
index 8d1d5ae8212cc5f49eafd4d88488fe5c5f85376e..549bd2521eaffedb8830a8aed82dd1d008e5872f 100644 (file)
@@ -261,6 +261,9 @@ struct srd_decoder_inst {
        /** Indicates whether the worker thread has handled all samples. */
        gboolean handled_all_samples;
 
+       /** Requests termination of wait() and decode(). */
+       gboolean want_wait_terminate;
+
        GCond got_new_samples_cond;
        GCond handled_all_samples_cond;
        GMutex data_mutex;