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
- Next message: Keith Cayemberg: "Re: Graphics routines (GDCHART, etc.) with OpenVMS PERL, CSWS mod_perl"
- Previous message: DeanW: "TCPIP automatic route additions"
- In reply to: Robin: "Does anyone know of an object compatible (non static) way of setting timeouts on VMS?"
- Next in thread: Robin: "Re: Does anyone know of an object compatible (non static) way of setting timeouts on VMS?"
- Reply: Robin: "Re: Does anyone know of an object compatible (non static) way of setting timeouts on VMS?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Keith Cayemberg: "Re: Graphics routines (GDCHART, etc.) with OpenVMS PERL, CSWS mod_perl"
- Previous message: DeanW: "TCPIP automatic route additions"
- In reply to: Robin: "Does anyone know of an object compatible (non static) way of setting timeouts on VMS?"
- Next in thread: Robin: "Re: Does anyone know of an object compatible (non static) way of setting timeouts on VMS?"
- Reply: Robin: "Re: Does anyone know of an object compatible (non static) way of setting timeouts on VMS?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|