home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff339.lzh
/
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;