[Mesa-dev] Is Mesa on win32 thread safe?

Jose Fonseca jfonseca at vmware.com
Wed Mar 14 05:22:48 PDT 2012


I believe this was fixed in master with commit: 

commit 4a72d859b4f8d0444eb7f38606d59d7ddc9ea8fa 
Author: Brian Paul <brianp at vmware.com> 
Date: Thu Feb 16 12:25:22 2012 -0700 

util: add mutex lock in u_debug_memory.c code 

The linked list of memory allocations was not protected by a mutex. 
This lead to sporadic failures with multi-threaded apps. 

Reviewed-by: Jose Fonseca <jfonseca at vmware.com> 

I've crossported to 8.0 branch. 

In general Mesa is thread safe, but I don't think it has received much testing with multi-threaded apps, so it's likely there are issues. 

Jose 
----- Original Message -----

> Hi,

> Is Mesa 8.0 implementation on windows thread safe?

> I have some test code that is doing rendering in parallel threads
> using debug build of opengl32.dll and it is crashing in debug_free
> on list_del operation.

> The implementation of u_double_list.h does not seem to be thread
> safe, so I believe if concurrent debug_free/debug_malloc happen it
> can cause crashes. Is it possible or is there proper locking
> somewhere up in the calling stack?

> Thanks,
> Juraj
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120314/df8c7747/attachment.html>


More information about the mesa-dev mailing list