#include "proc.h"
Go to the source code of this file.
Classes | |
| struct | ResourceInstance |
Defines | |
| #define | NO_OWNER 0xff |
| this is the default value of the resource lock | |
| #define | InitResource(x) {(x).owner = NO_OWNER; } |
| #define | DeclareResource(x) extern ResourceInstance x |
| #define | ResourceOwner(x) (x).owner |
Typedefs | |
| typedef __near ResourceInstance * | ResourceType |
Functions | |
| StatusType | GetResource (ResourceType ResID) |
| GetResource get a critical section This call serves to enter critical sections in the code that are assigned to the resource referenced by <ResID>. | |
| StatusType | ReleaseResource (ResourceType ResID) |
| ReleaseResource is the counterpart of GetResource and serves to leave critical sections in the code that are assigned to the resource referenced by <ResID>. | |
Definition in file resource.h.
|
|
GetResource get a critical section This call serves to enter critical sections in the code that are assigned to the resource referenced by <ResID>. A critical section shall always be left using ReleaseResource.
|
|
|
ReleaseResource is the counterpart of GetResource and serves to leave critical sections in the code that are assigned to the resource referenced by <ResID>.
|
1.4.6