From: ross::barna (rbarna++at++neochi.com)
Date: 06/27/2000 11:58:19
rules of thumb for pthreads + performer that seem to work for me:
1) sproc before fork
performer sproc's, pthreads fork. make sure to
spawn your performer proc's before your threads!
2) don't access performer data structure while pf is drawing
use a read/write lock to make sure your threads don't
mess with pfObjects while pfSync(), pfFrame()
and pfDraw() are being called. the pthreads are readers
and the fn that calls pfSync, frame and draw is the
writer.
-ross
On Tue, 27 Jun 2000, Acosta, Mark W [Magic Earth LLC] wrote:
> I recall that mixing pthreads and Performer was a bad thing. Is this still
> true?
>
> Mark Acosta
> Magic Earth LLC
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2b29 : Tue Jun 27 2000 - 12:03:14 PDT