24 lines
424 B
C
24 lines
424 B
C
#ifndef FACILITIES_MCM_H
|
|
#define FACILITIES_MCM_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <pthread.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef enum MCM_PROTOCOL {
|
|
MC_PROTOCOL_MCM,
|
|
MC_PROTOCOL_MCM_RR
|
|
} MCM_PROTOCOL_e;
|
|
|
|
typedef struct mcm_coord {
|
|
bool active;
|
|
MCM_PROTOCOL_e protocol;
|
|
pthread_mutex_t lock;
|
|
} mcm_coord_t;
|
|
|
|
void* mc_service(void *arg);
|
|
void mcm_coord_init();
|
|
|
|
#endif
|