1#ifndef MUTEX_H_
 2#define MUTEX_H_
 3
 4#include <pthread.h>
 5
 6typedef struct {
 7	int note;
 8	int state;
 9	int velocity;
10	int action;
11} SharedData;
12
13extern SharedData shared_data;
14
15extern pthread_mutex_t mutex;
16extern pthread_cond_t cond_midi;
17extern pthread_cond_t cond_synth;
18
19void initialize_mutex();
20void destroy_mutex();
21
22#endif // MUTEX_H_
23