[Mesa-dev] [PATCH] st/wgl: Release stw_framebuffer::mutex after pbuffer creation

Mathias Fröhlich Mathias.Froehlich at gmx.net
Thu Oct 13 10:37:15 PDT 2011


Hi,

We have experienced a problem with the win32 wgl pbuffer implementation using 
gallium together with threading.

This attached change releases the stw_framebuffer::mutex past creation of
the pbuffer stw_framebuffer. Without this change the pbuffers
lock is never released. Since on win32 mutexes are recursive, this
does not hurt as long as all actions on a context are done from
the same thread. But if, for example, context creation happens in
a different thread than usage, every access to the context will
block for ever.

This actually fixes the observed problems in an application that really creates 
the context in a different thread than it makes use of the pbuffer.

Please review and may be apply if its ok.
Thanks!

Mathias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-st-wgl-Release-stw_framebuffer-mutex-after-pbuffer-c.patch
Type: text/x-patch
Size: 1275 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111013/6c9fb452/attachment.bin>


More information about the mesa-dev mailing list