summaryrefslogtreecommitdiff
path: root/synth/communication.h
diff options
context:
space:
mode:
Diffstat (limited to 'synth/communication.h')
-rw-r--r--synth/communication.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/synth/communication.h b/synth/communication.h
new file mode 100644
index 0000000..27f7186
--- /dev/null
+++ b/synth/communication.h
@@ -0,0 +1,22 @@
+#ifndef __COMMUNICATION_H__
+#define __COMMUNICATION_H__
+
+#include <pthread.h>
+
+struct suspend_request_t
+{
+ int prog; //if negative, all programs are affected
+ bool suspend; //true->suspend, false->use them again
+ bool done; //must be set to false by the requester,
+ //must be set to true after processing by the requestee
+};
+
+
+extern pthread_mutex_t suspend_request_mutex;
+extern suspend_request_t suspend_request;
+
+
+
+void init_communication();
+void uninit_communication();
+#endif