Sharon Clay (src++at++rose.engr.sgi.com)
Wed, 20 Aug 1997 12:08:26 -0700
More clarification here: you can't use the _same_ X Display connection
in multipe threads. As Brian says, the error you are seeing does smell
of this. Performer provides sproc-safe X connections through
pfGetCurWSConnection(). However, the mechanism used in Performer
does NOT work for pthreads. So, you'll have to open your own X
connection and keep it in your pthread-specific memory area.
->
->Brian
->
->On Aug 19, 9:57am, Anita Kishore wrote:
->> Subject: Re: Threads.
->>
->> [ Text
->> Encoded with "quoted-printable" ] :
->>
->> On Aug 18, 11:02pm, Rémi Arnaud wrote:
->> > Subject: Re: Threads.
->> > Peter Plachta wrote:
->> > >
->> > >
->> > > Hi
->> > > I have a Performer program that uses pThreads to play sound files -
->> > > sometimes it crashes, though (I get "X error (...) BadAccess (attempt to
->> > > access private resource denied) ). I was wondering if this is a performer
->> > > issue and if the next version will be pThread compatible
->> > > (we're using version 2.1 of Performer)
->> > >
->> > > Thanks,
->> > >
->> > > Peter
->> > >
->> >
->> >
->> > It looks like more an OS problem. Are you running 6.2 ? Did you try
->> > the application with 6.4 ?
->> >
->> > regards
->> >
->> >
->> > _ / _ _
->> > |_) _ ._ _ o /\ |_)|\ | /\ | || \
->> > | \(/_| | || /--\| \| \|/--\|_||_/
->>
->>
->>
->> As far as I knew, pf2.1 didn't support pThreads, neither did 6.2, in 6.3
->there
->> is a patch for using pThreads and 6.4 has direct support for it - is this
->> info correct?
->>
->> -anita
->> kishore++at++triavest.com
->>
->> --
->> Anita Kishore
->>-- End of excerpt from Anita Kishore
->
->--
-> ----oOOo---- ----oOOo---- ----oOOo---- ----oOOo----
->
->Brian Furtaw (brian++at++sgi.com)
->VisSim Technical Consultant
->12200-G Plum Orchard Drive Office:(301)572-3293 Fax: (301)872-3293
->Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer
->
->
+>---- End of excerpt from Brian Furtaw
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com (415) 933 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
===================================List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:45 PDT