Path: 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 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