[Issue 3885] No multithread support for Windows DLL
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 6 08:31:24 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3885
--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> 2010-03-06 08:31:23 PST ---
Created an attachment (id=584)
allow multithreading with dlls
Here's a patch that fixes the issue for D2. It consists of 3 parts:
1. some modifications to core.thread to allow attaching and detaching to
threads that are not the current thread.
2. a support file core.thread_helper to enumerate running threads, so that you
can attach to these in DllMain
3. another support file core.dll_helper to fix the missing implicite TLS
support on Windows XP.
After applying the patch to druntime, the test project can be compiled with
-version=use_patch to test it.
Sorry, don't know enough for the Posix version, so there might be some issues
to sort out.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list