From: Allen Bierbaum (allenb++at++vrac.iastate.edu)
Date: 06/26/2000 12:26:06
Hello all,
I am facing the following strange problem.
I have create a channel group of several channels. I set the shared
channel attributes up with the following attribs:
masterChan->setShare(PFCHAN_NEARFAR | PFCHAN_EARTHSKY |
PFCHAN_STRESS | PFCHAN_SWAPBUFFERS |
PFCHAN_APPFUNC | PFCHAN_CULLFUNC );
After I do this, I check all the channels in the group, and they do have
these parameters set.
My problem is that even though I am sharing the app func
(PFCHAN_APPFUNC), my application callback and node app callback
functions are being called once for ever single pfChannel in the channel
group.
For example:
If I do the following:
masterChan->setTravFunc(PFTRAV_APP, testAppFunc);
The function gets shared across all channels, but every channel calls
the function. Not just the master as I would have expected.
From the Performer man pages, this seems to be an incorrect behavior.
The man pages say:
...
PFCHAN_APPFUNC
The application callback is invoked once for all channels
sharing PFCHAN_APPFUNC.
...
pfApp carries out the application traversal for the channel and should
only be invoked in the application callback specified by
pfChanTravFunc.
The application callback is invoked once for each channel group
that is
sharing PFCHAN_APPFUNC.
....
Am I missing something here? Is Performer behaving badly, or is the man
page incorrect?
-Alle
--Allen Bierbaum ISU SE Lab Research Assistant
This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 12:40:50 PDT