Article View: comp.sys.amiga.tech
Article #8908Re: Who's got the lock?
From: doug-merritt
Date: Mon, 16 May 1988 22:58
Date: Mon, 16 May 1988 22:58
23 lines
1586 bytes
1586 bytes
Peter, your code looks pretty reasonable. Certainly the volume pointers
that you are comparing should point to the same thing, unless someone
write a bogus "assign" sort of program to muck with them. If you
compare the strings pointed to in the dl_Name field of the two volumes,
that should cover even the (unlikely?) case where there are two copies
of the same structure. I doubt that's necessary, but it *would* make
it guaranteed to work.
Hmmm...actually, if you really want to make sure, the absolute postive
way is to take the volume pointer, get the dn_Task field, and then
search for a device with the same dn_Task field. That would absolutely,
positively, no exceptions, be guaranteed to work.
But your pointer comparison might be good enough.
I'm not sure about the second part with the data block, but I'll be
interested to hear whether that works. Hmmm...maybe I should try
it out...
Doug
---
Doug Merritt ucbvax!sun.com!cup.portal.com!doug-merritt
or ucbvax!eris!doug (doug@eris.berkeley.edu)
or ucbvax!unisoft!certes!doug
Technical Details
Message-ID:
<5508@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!batcomputer!itsgw!steinmetz!uunet!portal!cup.portal.com!doug-merrittReferences:
<1990@sugar.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!batcomputer!itsgw!steinmetz!uunet!portal!cup.portal.com!doug-merritt From: doug-merritt@cup.portal.com Newsgroups: comp.sys.amiga.tech Subject: Re: Who's got the lock? Message-ID: <5508@cup.portal.com> Date: 16 May 88 22:58:20 GMT References: <1990@sugar.UUCP> Organization: The Portal System (TM) Lines: 23 XPortal-User-Id: 1.1001.4407