-
Notifications
You must be signed in to change notification settings - Fork 1
/
MrsvrSharedData.h
45 lines (35 loc) · 1.12 KB
/
MrsvrSharedData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//====================================================================
//
// MRI guided robot control system
//
// Copyright (C) 2003-2005 by The University of Tokyo,
// All Right Reserved.
//
//====================================================================
// $RCSfile: MrsvrSharedData.h,v $
// $Revision: 1.1.1.1 $
// $Author: junichi $
// $Date: 2005/01/11 11:38:33 $
//====================================================================
//====================================================================
// Description:
// MrsvrSharedData class provides the data sharing between
// differrent proccesses on the same host.
//====================================================================
#ifndef _INC_MRSVR_SHARED_DATA
#define _INC_MRSVR_SHARED_DATA
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#ifdef DEBUG
#define DEBUG_MRSVR_SHARED_DATA
#endif
class MrsvrSharedData {
protected:
int shmID; // shared memory id
void* sharedMemory; // head address of shared memory area
public:
MrsvrSharedData(key_t, int);
~MrsvrSharedData();
};
#endif