Jean Daigle (jaydee++at++ats.qc.ca)
Thu, 28 Mar 1996 12:54:12 -0500
On Mar 28, 9:06am, "Randall Barker" wrote:
...
} How do I find out what the process mode really is going to be if PFMP_DEFAULT
} has be specified? The reason I ask this is because PFMP_DEFAULT is defined as
} -1 and not a bit mask, thus oring PFMP_FORK_DBASE with PFMP_DEFAULT causes
} Performer to crash hard. Any ideas how to get the actual process mode (ie
} PFMP_APP_CULL_DRAW etc) with out having to check the number of processors and
} guessing what Performer would have picked. Thanks
...
}-- End of excerpt from "Randall Barker"
How about;
{
int iMode;
pfMultiprocess(PFMP_DEFAULT);
iMode = pfGetMultiprocess();
assert(iMode != PFMP_DEFAULT);
pfMultiProcess(iMode | PFMP_FORK_DBASE);
/* ... */
pfConfig();
}
I'm assuming that pfMultiProcess() actually takes effect immediately,
so that pfGetMultiprocess() returns something sensible. The
assert() call will test the hypothesis.
The docs say you must call pfMultiprocess() before pfConfig(),
and the latter may be invoked only once per application.
Hope this helps.
Regards,
Jean Daigle.
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:36 PDT