home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19340 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.7 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!ucbvax!UV3.EGLIN.AF.MIL!RICHARDE
  2. From: RICHARDE@UV3.EGLIN.AF.MIL ("Eric F. Richards")
  3. Newsgroups: comp.os.vms
  4. Subject: RE: SMG$ routines: Just how non-reenterent are they?
  5. Message-ID: <9212152021.AA09425@ucbvax.Berkeley.EDU>
  6. Date: 15 Dec 92 13:49:00 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 34
  11.  
  12. kushmer@bnlux1.bnl.gov (christopher kushmerick) writes:
  13. > The manual says that SMG$ is not reenterent (spelling?).
  14. >
  15. > Does this mean that I should disable ASTs from occuring arounds each smg call 
  16. > if my program uses AST routines triggered by timers, $qios et cetera?
  17. >
  18. > Or does it only mean that I should not do any SMG routines in any ASTs that
  19. > may
  20. > interrupt a SMG routine?
  21. >
  22.  
  23. You can use ASTs for non-SMG related activities.  Calling SMG from an AST
  24. routine can produce "interesting" results -- in my experience they were never
  25. fatal, but you wouldn't get what you want.  (Crosshatches of lines on the
  26. screen, for example.)
  27.  
  28. Caveats:  SMG disables ASTs in its own activity.  You can disable
  29. user-mode ASTs to your process by simply XOFFing your terminal while
  30. SMG is drawing something.  This is fine as long as your ASTs aren't
  31. triggered or required by another process (for example, a blocking AST
  32. on a lock).
  33.  
  34. Also, under "certain" circumstances SMG will disable ASTs but not re-enable
  35. them.  As I recall, it involved updating stuff in a pasted display that had
  36. a viewport, but the data being updated was outside the viewport.  I SPR'd
  37. this through our local channels, but never heard anything back on it.
  38.  
  39. Eric Richards
  40. Tybrin Corp
  41. 904/882-9795
  42. richarde@eglin.af.mil
  43. "Opinions here are my own."
  44.  
  45.  
  46.