https://bugs.freedesktop.org/show_bug.cgi?id=76252
--- Comment #8 from José Fonseca <jfons...@vmware.com> --- (In reply to comment #7) > A colleaque had another idea: > We export stw_cleanup and call it before unloading the dll. This seems to > work very well and shuts down the threads as expected. > > If you don't see any problems with this approach, we could live with this > workaround. Yes, that should work, but I think that my other solution: "One alternative would be to replace in lp_rast_destroy() the following code /* Wait for threads to terminate before cleaning up per-thread data */ for (i = 0; i < rast->num_threads; i++) { pipe_thread_wait(rast->threads[i]); } with a signal, i.e., instead of waiting for the threads to finish, simply wait for the threads to signal they are ready to finish, which should happend concurrently with DllMain." Is more general, and would avoid leaking internal implementation details outside. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev