On Tue, Jan 10, 2012 at 09:10:15PM +0100, Henri Verbeet wrote:
On 10 January 2012 20:55, Andrew Eikum aeikum@codeweavers.com wrote:
So it appears we should be able to launch threads in DllMain() without deadlocking.
Thoughts, anyone?
That should be easy enough to test. Is the issue just launching a thread though, or actually waiting for it to start?
You're right. I jumped to the conclusion that they were using that thread to complete the GetNumDevs() call. If I explicitly spawn a thread and wait for it in dmtest.dll, it deadlocks on Windows as well. So that's the wrong answer.