Re: Multiples lines of execution

New Message Reply Date view Thread view Subject view Author view

Joaquin Casillas Melendez (jcasilla++at++glup.eleinf.uv.es)
Wed, 1 Oct 1997 13:57:37 -0700 (PDT)


On Wed, 1 Oct 1997, Mario Veraart wrote:

> > 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.
>
         
  Thanks Mario for your suggestion. I have done something like that, and
checking the variable every loop is much better than starting a new thread
of execution.

> 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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:03 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.