diff options
Diffstat (limited to 'synth/communication.cpp')
-rw-r--r-- | synth/communication.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/synth/communication.cpp b/synth/communication.cpp new file mode 100644 index 0000000..f21e46f --- /dev/null +++ b/synth/communication.cpp @@ -0,0 +1,16 @@ +#include "communication.h" + +pthread_mutex_t suspend_request_mutex; +suspend_request_t suspend_request; + +void init_communication() +{ + pthread_mutex_init(&suspend_request_mutex, NULL); + + suspend_request.done=true; +} + +void uninit_communication() +{ + pthread_mutex_destroy(&suspend_request_mutex); +} |