home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20877 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.6 KB

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