Re: Does anyone know of an object compatible (non static) way of setting timeouts on VMS?

From: Bob Koehler (koehler_at_eisner.nospam.encompasserve.org)
Date: 02/16/05


Date: 16 Feb 2005 10:42:26 -0600

In article <cuv4vb$fn$1@rdel.co.uk>, "Robin" <robin@yeahright.com> writes:
> Hi all,
>
> I hope someone can help. I need a way of setting object compatible
> timeouts within VMS. Both the system command 'sys$setimr()' and the X
> toolkit command 'XtAppAddTimeOut()' call static functions on completion
> rendering my object code useless. (There will be multiple instances of the
> object but only one of the timeout routine!)
>
> If anyone knows any other way of achieving this I would be grateful.

   The general way of telling things apart in the AST called by $SETIMR
   is by the request id, which is basically an argument passed to the
   AST that you can use as you wish. You need to map the request id
   to the specific object instance. For example, in Java you could use
   Object.hash() (inheritted by all objects) as a unique request id.
   There should be something similar in C++, perhaps &object. There
   should then be a hook to allow your static routine to access object
   instance specific data and functions, but you may have to make sure
   you write them in an AST reentrant manner.



Relevant Pages

  • Re: Highly responsive serial port
    ... Note that read request to the serial driver can be completed ... by reading specified number of bytes, ... you either don't want to rely on timeouts (design your protocol ... Would a driver(in kernel mode) have enough priority to process such requests in time? ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Does anyone know of an object compatible (non static) way of setting timeouts on VMS?
    ... > timeouts within VMS. ... Both the system command 'sys$setimr' and the X ... routine that gets called at the time the timer expires. ... this is passed as a parameter to the AST routine that is called when the ...
    (comp.os.vms)
  • Does anyone know of an object compatible (non static) way of setting timeouts on VMS?
    ... timeouts within VMS. ... Both the system command 'sys$setimr' and the X ... rendering my object code useless. ...
    (comp.os.vms)
  • Re: WriteFile()
    ... >> Synchronous means BLOCK call with no timeouts. ... >> If I say READ and WRITE X bytes why will the system ignore the request ... > socket because the peer socket has stopped receiving is not an error; ... > not behaving "properly", because it could return, successfully, without ...
    (microsoft.public.win32.programmer.kernel)
  • Re: ATA device reset, shoud I be concerned?
    ... We got bored of waiting for the drive to respond to our request. ... 15secs as many SFF controllers report ... transmission failure as timeouts. ...
    (Linux-Kernel)