X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrok.h;h=4212c59c4f046d77522b81a12b9a949568664123;hb=33c6e4c5a428115965f980e88e6415fb782658e9;hp=fba6c9ccf2910c2c86f342480dcf4ec1aba2907b;hpb=33ef757383896959651c48744fabb417729424dc;p=libsigrok.git diff --git a/libsigrok.h b/libsigrok.h index fba6c9cc..4212c59c 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -775,6 +775,14 @@ struct sr_session { struct source *sources; GPollFD *pollfds; int source_timeout; + + /* + * These are our synchronization primitives for stopping the session in + * an async fashion. We need to make sure the session is stopped from + * within the session thread itself. + */ + GMutex stop_mutex; + gboolean abort_session; }; #include "proto.h"