Article View: comp.sys.amiga.tech
Article #5367Re: Amiga semaphores (HELP!)
From: Valentin Pepelea
Date: Fri, 21 Sep 1990 02:22
Date: Fri, 21 Sep 1990 02:22
20 lines
1536 bytes
1536 bytes
In article <2290004@hp-ptp.HP.COM> jimg@hp-ptp.HP.COM (Jim_Garrison) writes:
>
> I've trying to use Amiga Semaphores, as a mechanism to let only one program
> access a particular resource at a time. I'm using the Amiga Programmers
> Reference by Eugene Mortimer, as a reference for using the semaphores. I
> seem to recall that there is either some problem with the description of
> semaphores in this book, or there are problems with the way Amiga semaphores
> work. I'm using an A2500 with Amigados 1.3 and Lattice 5.05 C compiler.
The problem is with the semaphore calls. First of all, the AddSemaphore()
function expect a parameter in the wrong register. Take a look ROM Kernel
Reference Manual: Includes&Autodocs for a work-around. The blue-greenish
manual.
Valentin
--
The Goddess of democracy? "The tyrants Name: Valentin Pepelea
may distroy a statue, but they cannot Phone: (215) 431-9327
kill a god." UseNet: cbmvax!valentin@uunet.uu.net
- Ancient Chinese Proverb Claimer: I not Commodore spokesman be
Technical Details
Message-ID:
<14574@cbmvax.commodore.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!valentinReferences:
<2290004@hp-ptp.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!valentin From: valentin@cbmvax.commodore.com (Valentin Pepelea) Newsgroups: comp.sys.amiga.tech Subject: Re: Amiga semaphores (HELP!) Message-ID: <14574@cbmvax.commodore.com> Date: 21 Sep 90 02:22:16 GMT References: <2290004@hp-ptp.HP.COM> Reply-To: valentin@cbmvax.commodore.com (Valentin Pepelea) Organization: Commodore, West Chester, PA Lines: 20