On Mon, Mar 02, 2009 at 06:51:06AM +0200, Pauli Nieminen wrote:
There seems to be at least partial synchronization for dll loading but threading part doesn't include this lock. It seems like wine doesn't need it so maybe it is enough to just simulate windows with following small patch.
disclaimer: I didn't test this so might not be complete solution. If it isn't enough then you could try add lock calls to create thread and exit thread paths too.
[patch]
This just caused all the threads and processes to fail to start, locking on the main process or something.
I'll play with this further if I have time, barring further comment on this thread, see if I can confirm that the behaviour I'm seeing is due to the code I'm looking at being somehow inside the dll attach code.