home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d3xx
/
d339
/
pcq.lha
/
PCQ
/
Include
/
Semaphores.i
< prev
next >
Wrap
Text File
|
1990-03-19
|
525b
|
30 lines
{
Semaphores.i
}
{$I "Include/Ports.i"}
Type
Semaphore = Record
sm_MsgPort : MsgPort;
sm_Bids : Short;
end;
{ this is the structure used to request a signal semaphore }
SemaphoreRequest = record
sr_Link : MinNode;
sr_Waiter : Address; { A Task Pointer }
end;
{ this is the actual semaphore itself }
SignalSemaphore = Record
ss_Link : Node;
ss_NestCount : Short;
ss_WaitQueue : MinList;
ss_MultipleLink : SemaphoreRequest;
ss_Owner : Address; { TaskPtr }
ss_QueueCount : Short;
end;