home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!isgate!krafla!sigurasg
- From: sigurasg@rhi.hi.is (Sigurdur Asgeirsson)
- Newsgroups: comp.sys.mac.programmer
- Subject: CTB async Read/Write woes
- Message-ID: <5902@krafla.rhi.hi.is>
- Date: 7 Jan 93 11:49:17 GMT
- Sender: usenet@rhi.hi.is
- Lines: 26
- Nntp-Posting-Host: hengill.rhi.hi.is
-
-
- I've been trying to use the CMRead and CMWrite calls asyncronously,
- with a completion procedure that starts the next Read/Write. It seems
- to me that some tools disable all interrupts while a completion proc is
- running, and then try to do some kind of sync-ing (with an interrupt
- routine) on an async Read/Write, resulting in TOTAL lockup of the
- machine. I finally wound up setting up a VBL task to start the next
- Read/Write, which works but seems rather cludgy.
- So my questions to you CTB experts out there:
-
- 1. Is one supposed to be able to do a CMRead/Write from a completion proc?
- 2. Where do I find documentation on the new, all singing, all
- dancing CMPB* calls (that are declared in my <Connections.h>)? And,
- as an aside, how is the completion procedures associated with those
- calls to know which call just finished?
- 3. Does the AppleTalk ADSP Tool support timeouts on Reads/Writes?
- 4. Do some (Apple provided) comm tools return the wrong error code on
- timeout of Read/Write?
- 5. Does Santa Claus exist?
-
-
- --
- Sigurdur Asgeirsson | "Well you know, C isn't that hard, void (*(*f[])())()
- Fjardarsel 21 | for instance defines f as an array of unspecified size,
- 109 Reykjavik, Iceland | of pointers to functions that return pointers to
- sigurasg@rhi.hi.is | functions that return void... I think"
-