home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!davidp
- From: davidp@stealth.usc.edu (David Peterson)
- Newsgroups: comp.sys.mac.programmer
- Subject: Completion proc stuff
- Date: 12 Jan 1993 17:19:42 -0800
- Organization: University of Southern California, Los Angeles, CA
- Lines: 24
- Distribution: world
- Message-ID: <1ivqneINN609@stealth.usc.edu>
- Reply-To: davidp@usc.edu
- NNTP-Posting-Host: stealth.usc.edu
-
-
-
- I wrote a network copy program and thought I'd be clever and chain completion
- procs together to handle the I/O in order to keep the process invisible to the
- rest of the Mac. ie: receive completion does a write, write completion does a
- recieve, and the Mac still responds to me.
-
- Well, it works great except that it hangs the machine for the duration of the
- copy. The mouse still moves around the screen and events still get posted, but
- they don't get processed until the copy is finished.
-
- What gives? Do I have to suspend my completion proc chain momentarily to give
- the system time to do other stuff? I thought that by doing things asyncronously
- the I/O stuff would go on in the background leaving the machine free to handle
- user events.
-
- By chaining things together like that did I just create one monster interupt
- routine, or does the rest of the system get time when I go through PBControl?
-
- Did I screw up my code or my thinking? (or both)
-
- If it matters, I'm going from MacTCP to the File Manager under 7.1.
-
- -dave.
-