mempartexample.h

来自「官方源码」· C头文件 代码 · 共 41 行

H
41
字号
/*********************User-Created Partition Code ExampleThe following example is similar to the previous example using the shared memory sys-tem partition.  This example creates a user-defined partition and stores the shared data in this new partition.  A shared semaphore is used to protect the data.   o	The common header file memPartExample.h follows:**********************//* memPartExample.h - shared memory partition example header file *//* Copyright 1984-1997 Wind River Systems, Inc. *//*modification history--------------------01b,06nov97,mm  added copyright.    01a,???  written.*/#define CHUNK_SIZE      (2400)#define MEM_PART_NAME   "myMemPart"#define PART_BUFF_NAME  "myBuff"#define BUFFER_SIZE     (40)typedef struct shared_buff	{	SEM_ID semSmId;	char   buff [BUFFER_SIZE];	} SHARED_BUFF;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?