🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5346

Re: Amiga semaphores (HELP!)

#5346
From: Jim_Garrison
Date: Tue, 18 Sep 1990 16:03
45 lines
1525 bytes
jjszucs@cbmvax.commodore.com (John J. Szucs) / 10:40 am  Sep 17, 1990 / writes:

>
>Under Kickstart/Workbench Release 1.3, the exec.library/AddSemaphore function
>does not work properly.

Aha! Great!  Thanks a bunch, now I can get back to work.  (Working a on a 
spooling program to print 2 pages per page on a LaserJet (or compatible)
printer.)

>
>Use the following:
>
>void LocalAddSemaphore(struct SignalSemaphore *SignalSemaphore)
>{
>	SignalSemaphore-.ss_Link.ln_Type=NT_SIGNALSEM;
>	InitSemaphore(SignalSemaphore);
>	Forbid();
>	Enqueue(&SysBase->SemaphoreList,SignalSemaphore);
>	Permit();
>}
>

Okay!

>This is documented in the AutoDocs (available from CATS).

Uh, where can I write to, so I can get these?  I'd sure like to get these
docs that relate to AmigaDOS 2.0 also.

>
>The function is correct under Kickstart/Workbench Release 2.0.
     ^^^^^^^^
AddSemaphore, I presume.  Now, if I can only get 2.0!



Thanks John, for your help, I appreciate being able to get this kind of support
over the net.


Regards,

Jim Garrison
Hewlett Packard
Technical Details
Message-ID: <2290005@hp-ptp.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!dali.cs.montana.edu!milton!uw-beaver!Teknowledge.COM!unix!hplabs!hpl-opus!hpcc05!hpcc01!hp-ptp!jimg
References: <2290004@hp-ptp.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!dali.cs.montana.edu!milton!uw-beaver!Teknowledge.COM!unix!hplabs!hpl-opus!hpcc05!hpcc01!hp-ptp!jimg
From: jimg@hp-ptp.HP.COM (Jim_Garrison)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Amiga semaphores (HELP!)
Message-ID: <2290005@hp-ptp.HP.COM>
Date: 18 Sep 90 16:03:08 GMT
References: <2290004@hp-ptp.HP.COM>
Organization: HP Pacific Technology Park - Sunnyvale, Ca.
Lines: 45