[Mesa-dev] Is Mesa on win32 thread safe?
jfonseca at vmware.com
Wed Mar 14 05:22:48 PDT 2012
I believe this was fixed in master with commit:
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.
----- Original Message -----
> 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?
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mesa-dev