📄 locmem.hh
字号:
/********************************************************************* Description: locmem.hh* Implements LOCMEM which is a derived class of CMS that serves* primarily to provide addresses that match when matching buffer* names are passed to the constructor. It is useful in allowing* control modules to use the same inteface to communicate as would* be required if they were not running in the same process even* though to use LOCMEM they must be.** Derived from a work by Fred Proctor & Will Shackleford** Author:* License: LGPL Version 2* System: Linux* * Copyright (c) 2004 All rights reserved.** Last change: * $Revision: 1.4 $* $Author: paul_c $* $Date: 2005/05/23 16:34:10 $********************************************************************/#ifndef LOCMEM_HH#define LOCMEM_HH#include "cms.hh" // class CMS#include "linklist.hh" // class LinkedListstruct BUFFERS_LIST_NODE { void *addr; long size; char name[64];};class LOCMEM:public CMS { public: LOCMEM(char *bufline, char *procline, int set_to_server = 0, int set_to_master = 0); virtual ~ LOCMEM(); CMS_STATUS main_access(void *_local); protected: void *lm_addr; int buffer_id; BUFFERS_LIST_NODE *my_node; static LinkedList *buffers_list;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -