📄 shm.h
字号:
/*************************************************************************** shm.h - description ------------------- begin : Fri Jul 20 2001 copyright : (C) 2001 by Mark email : alben@yeah.net ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef SHM_H#define SHM_H#include <sys/ipc.h>#include <sys/shm.h>#include <tinycxx/exception.h>class CShm{public: CShm(key_t tKey, int iSize, int iMode = 0600); virtual ~CShm(); void GetShm(int iMode = 0600); void AttachShm(); void DetachShm(); void RemoveShm(); bool IfCreate() { return m_bCreate; } void InitShm(); protected: const key_t m_tShmKey; const int m_iShmSize; int m_iShmId; char* m_pchShm; int m_bCreate;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -