📄 rm_defs.h
字号:
/************************************************************************/
/* */
/* Copyright 1990,1991,1992 by Accelerated Technology */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are */
/* governed by the license agreement. The buyer or recipient of this */
/* package, implicitly accepts the terms of the license. */
/* */
/************************************************************************/
/************************************************************************/
/* */
/* FILE DESCRIPTION */
/* */
/* This file contains the description of the Resource Management */
/* Structures and the Resource Suspension Structures. */
/* */
/* ROUTINES */
/* */
/* None */
/* */
/* NOTES */
/* */
/* None */
/* */
/************************************************************************/
/* The structure "RM_SUSPENSION_STRUCT" defines the information necessary
to suspend a task on one semaphore. This structure is allocated off
of the calling application stack. */
struct RM_SUSPENSION_STRUCT
{
signed int rm_task_id; /* Task suspended */
signed int rm_semaphore_id; /* ID of semaphore */
signed int *rm_return_addr;/* Address to return value */
struct RM_SUSPENSION_STRUCT
*rm_next_susp, /* Next suspension ptr */
*rm_prev_susp; /* Previous suspension ptr */
};
/* The structure "RM_RESOURCE_CONTROL_STRUCT" defines the information
necessary to manage a semaphore. In the file "RM.C" an array of these
structures is allocated relative to the number of semaphores defined
in "IN_DATA.C." */
struct RM_RESOURCE_CONTROL_STRUCT
{
unsigned int rm_semaphore; /* Semaphore count */
signed int rm_task_id; /* Task that has resource */
struct RM_SUSPENSION_STRUCT
*rm_wait_head, /* Semaphore wait head */
*rm_wait_tail; /* Semaphore wait tail */
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -