Re: Multiples lines of execution
Mario Veraart (rioj7++at++fel.tno.nl)
Wed, 1 Oct 1997 13:46:18 +0200 (MET DST)
> I need two different lines of execution in my pfapp in order to modify
> a dcs at the same time I walk through the scene. The dcs movement is
> caused by a keyboard event, and I don't want to query in the simulation
> loop the status of the dcs each time. I want it to be event managed.
>
> For this task, I'm using the libpthread library to start an additional
> line of execution and do the dcs transformation when a certain key is
> pressed. Sometimes it works fine, but usually it crashes (with a Kernel
> Panic message and the machine going down!!!). I use Performer 2.1 in O2
> platform.
>
> I would appreciate any suggestion about this problem, if someone have used
> threads in an application.
> _/ Joaquin Casillas | email: jcasilla++at++glup.eleinf.uv.es _/
Just use the same sceme that perfly uses.
Put a variable in a shared data struct and set it when the key is pressed.
In the App process just check this variable and perform the transform.
Mario
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:56:03 PDT