home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms
- Subject: Re: sys$hiber/sys$wake problems?
- Date: 11 Nov 1992 00:16:44 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 32
- Distribution: world
- Message-ID: <1dpjdcINNnss@gap.caltech.edu>
- References: <BxIAFn.2p6@unx.sas.com>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <BxIAFn.2p6@unx.sas.com>, sasjzs@falcon.unx.sas.com (Joseph Slater) writes:
- >
- >Hi folks,
- > I have an application that hibernates and is awakened by ast
- >routines that call sys$wake. The details are far too complicated
- >to get into here, but the calls to wake frequently happen about
- >time the call is made to sys$hiber. Has anyone ever seen a sys$hiber
- >return when there is (or should be) no outstanding sys$wake?
-
- When there is no outstanding call, no. When there should be no outstanding
- call, certainly. It's known as a bug in your code.
-
- You might consider bracketing all your calls to $HIBER and $WAKE with code that
- will store the fact you've made the call someplace. E.g., allocate an array
- and an index. Zero both of them. Every time you call $HIBER, set array[index]
- to 1 and increment index just before the call; every time you call $WAKE, set
- array[index] to 2 and increment index just before the call, if you want a
- detailed record of the calls.
-
- If you just want to confirm the fact that your code is buggy, allocate a single
- variable. Set the variable to 1 just after any call to $WAKE. Set it to 0
- just after any call to $HIBER. Just before any call to $HIBER, check the
- variable, and if it's set to one, report the fact that there was an unexpected
- call made to $WAKE.
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-