Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!netserv2!deven From: deven@rpi.edu (Deven T. Corzine) Newsgroups: comp.sys.amiga.tech Subject: Re: Async AmigaDOS I/O using locks and packets? Message-ID: Date: 14 Apr 90 08:43:29 GMT References: <1990Apr13.224913.17590@altitude.CAM.ORG> Distribution: comp Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 33 In-Reply-To: martint@altitude.CAM.ORG's message of 13 Apr 90 22:49:13 GMT In article I write: Deven> It also says that locks can also be used for asynchronous I/O, Deven> but does not describe HOW. Can you Lock() a file and use Deven> packets to the filesystem handler to do asynchronous I/O to Deven> AmigaDOS files without even having to call Open()? If so, how Deven> do you do this? On 13 Apr 90 22:49:13 GMT, martint@altitude.CAM.ORG (Martin Taillefer) said: Martin> There's no way as of 1.3 to flip flop from a file handle to a Martin> file lock and back from the perspective of the user of a Martin> handler. Why, then, the cryptic comment in the AmigaDOS manual? Martin> The best way to do async file system IO is to first open the Martin> file using the normal Open() call, then use the data contained Martin> in the FileHandle to communicate with the file system Martin> directly. When you're done, you can then use the normal Martin> Close() to terminate access to the file. I do this all the Martin> time and it works great. I understand this approach okay. It doesn't merge real cleanly with Exec I/O, but c'est la vie. Deven -- Deven T. Corzine Internet: deven@rpi.edu, shadow@pawl.rpi.edu Snail: 2151 12th St. Apt. 4, Troy, NY 12180 Phone: (518) 274-0327 Bitnet: deven@rpitsmts, userfxb6@rpitsmts UUCP: uunet!rpi!deven Simple things should be simple and complex things should be possible.