On Wed, 5 Sep 2001, Ian Medland wrote:

> Afternoon,
> 
> I'm trying to write a multi-threaded app which uses render extensions. 
> Target is XFree 4.0.3 on i810 hardware.
> 
> In a single thread it works fine - as soon as I put in XInitThreads() the 
> app locks inside XRenderFindFormat (calls XRenderQueryFormats, 
> XGetVisualInfo, XInitThreads).
> 
> The reason for making it multithreaded is because the app generates a lot 
> of timer and internal events so I need to be able to handle these events 
> alongside server events. I therefore wanted 1 thread in a XNextEventLoop 
> and 1 loop maintaining internal state - performing the drawing.
> 
> Is rendering known to be thread-broken? Is there something silly I'm 
> forgetting (this is about my forth week in X land!).
> 

   I'm not sure if anyone has been testing it with threads.  This
is the first report that I've seen.  I see that there is a missing
SyncHandle() at the end of XRenderQueryFormats().  It should
go after the last UnlockDisplay().  So there's definitely a bug
there.  I've just fixed that in CVS.  Not sure if that's the only
problem.



                                Mark.


_______________________________________________
Render mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/render

Reply via email to