代码搜索:Sharemem
找到约 738 项符合「Sharemem」的源代码
代码结果 738
www.eeworm.com/read/291506/8412226
sln sharemem.sln
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ShareMem", "ShareMem\ShareMem.vcproj", "{0413B6DE-ADD9-471D-A6
www.eeworm.com/read/291506/8412228
suo sharemem.suo
www.eeworm.com/read/374989/9376607
h sharemem.h
#include
#include
#include
#include
#include
#include
#include
#include
#define SHM_SIZE 1024
u
www.eeworm.com/read/374358/9408742
h sharemem.h
/*
* Copyright (C) 2006, Binary Ma
* Licence: GNU GPL 1991 - version 2
* Bug report: binary@eniak.org
*/
#ifndef __LIB_SHAREMEM
#define __LIB_SHAREMEM 1
#include
using namespace std;
c
www.eeworm.com/read/374358/9408768
cpp sharemem.cpp
/*
* Copyright (C) 2006, Binary Ma
* Licence: GNU GPL 1991 - version 2
* Bug report: binary@eniak.org
*/
#include "sharemem.h"
#include
#include
#include
#include
www.eeworm.com/read/370831/9581299
c sharemem.c
//共享内存
//多个进程共享一个存储区域,但在某个时刻,只允许一个进程向该区域写。在写后,其它进程都可以读该区域的数据
//
typedef struct share_mem_struct{
struct share_mem_struct *next;
WAIT_QUEUE *task_wait_header; //向共享区域写的进程在该区域已经锁定时在该指针指向的
www.eeworm.com/read/419410/10870658
h sharemem.h
#include
#include
#include
#include
#include
#include
#include
#include
#define SHM_SIZE 1024
u
www.eeworm.com/read/243629/12930922
h sharemem.h
#ifndef _MY_SHAREMEM
#define _MY_SHAREMEM
#include
#include
#include
#include
#include
#include
typedef enum{
SHM_ER
www.eeworm.com/read/243629/12930940
cpp sharemem.cpp
#include "sharemem.h"
CMyshm::CMyshm(int mode, int size, int offset=0)
{
key_t key;
// char* name = "/var/myshmem";
m_shmState = SHM_ERR;
m_mode = CLIENT_MODE ;
m_offset = offset;
k