From e32591388a18c8226e61b8f88b031ed7c88ca153 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 10 Jan 2011 20:20:10 +0100 Subject: Improved in-synth-cli, still TODO The CLI can now prepare loading a note without actually loading it --- synth/communication.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 synth/communication.cpp (limited to 'synth/communication.cpp') 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); +} -- cgit v1.2.3