pfPipeWindow config callback not being called?

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Mon, 8 Jan 1996 13:24:41 -0500


I'm trying to call a config callback associated to a pfPipeWindow
multiple times. It doesn't seem to work correctly when running in
multiprocess mode.

Following is a simple C++ program that reproduces the problem. OpenPipeWindow
should be called 10 times. For some reason in multiprocess mode
(PFMP_APP_CULL_DRAW) it is called only once by the draw process.
It works when I set (PFMP_DEFAULT).

I'm running pf2.0 under IRIX5.3.

#include <iostream.h>
#include <Performer/pf.h>
#include <Performer/pf/pfPipeWindow.h>

static void OpenPipeWindow(pfPipeWindow* pw)
{
   cout << "OpenPipeWindow called" << endl;
   pw->open();
}

void main()
{
   int frame = 0;

   pfInit();
   pfMultiprocess(PFMP_APP_CULL_DRAW);
   pfConfig();

   pfPipeWindow *window = new pfPipeWindow(pfGetPipe(0));

   while (frame++<10) {
      window->setConfigFunc(OpenPipeWindow);
      window->config();
      pfFrame();
   }
}

-- 
     ___/     |       ___/ Nicolas Gauvin	   e-mail: nicolas++at++cae.ca
    /       / |      /     Software Developper	   voice: (514) 341-2000 x2275
   /       /  |     __/    CAE Electronics Ltd.    fax:   (514) 340-5496
  /       ___ |    /	   8585 Cote De Liesse, P.O. Box 1800
_____/  _/   _| _____/     Saint-Laurent, Quebec, Canada, H4L-4X4

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:52:14 PDT

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