summaryrefslogtreecommitdiff
path: root/synth/communication.h
blob: 27f71865cc69f98717cc6e93342c48683c68e38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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