T.R | Title | User | Personal Name | Date | Lines |
---|
309.1 | I think so | ZENDIA::DBIGELOW | Innovate, Integrate, Evaporate | Wed Jul 20 1994 16:56 | 17 |
| Jean-Francois,
My guess is that you can. I'm guessing because I am familiar with how
the ENS actions work, but not an expert.
First, you'll need to write a permanent action routine. This will
stay running permanently and has the capability to receive all events
or only specific events. Now for the uncertain part. If ENS takes
control of your program, and only gives you control when an event
happens, then you'll have to write another program as well and
communicate via a mailbox or pipe. this would give you the asynchronous
behavior you are looking for.
Perhaps the developer, Phil, can fill you in with a few more details.
Dave
|
309.2 | very complicated ... may be another way ? | LIL08::MALRAS | Knowledge is power, en France aussi | Wed Jul 20 1994 17:34 | 10 |
| Dave, you're right, but it is not I was expecting.
I always hope another (undocumented ?) way to get asynchronously an event like
VCS did.
My reason is I don't want to rewrite my whole VCS application.
Any idea ?
JF
|
309.3 | | OPG::PHILIP | And through the square window... | Wed Jul 20 1994 18:21 | 13 |
|
Whats complicated about it? I deliberately made it simpler
to use that when I wrote the VCS interface to ENS! all that
messing about reading mailboxes was too messy and got a lot
of people into complications.
Exactly what is your application trying to do, maybe I can
come up with an easy way of using the interfaces we provide?
Cheers,
Phil
|
309.4 | More info ... | LIL08::MALRAS | Knowledge is power, en France aussi | Thu Jul 21 1994 10:57 | 21 |
| My application is Fortran written.
Main module is :
initializations ...
create mbx with write attention (ast set EF_mbx)
vcs$get_event with ast (ast set EF_ens)
set timer with ast (ast set EF_timer)
loop = .true.
do while (loop)
waitfor event_flag (EF_ens, EF_mbx, EF_timer)
if (EF_ens) call sub_ens
if (EF_mbx) call sub_mbx
if (EF_timer) call sub_timer
enddo
end
And I'd like to migrate VCS into PCM ..., without breaking my code.
Regards. JF
|
309.5 | | OPG::PHILIP | And through the square window... | Thu Jul 21 1994 11:29 | 14 |
|
Hmm, tricky, off hand, I cant think of an easy way to do what
you want, short of performing your mbx and timer stuff inside
an ast routine, which isnt to clever.
I guess what you need is a way to hook stuff into our CMMainLoop
code, like timers and other inputs.
Well, Timers I can do for you via some undocumented stuff if you
want, but, the other inputs stuff will have to wait until at
least the next major release of the software.
Cheers,
Phil
|
309.6 | So waiting next release - Thanks Phil | LIL08::MALRAS | Knowledge is power, en France aussi | Thu Jul 21 1994 15:21 | 0
|