[Webkit-unassigned] [Bug 13553] The static object in JSLazyEventListener::eventParameterName is destroyed after the static pthreads library is shut down
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 1 02:57:46 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=13553
ap at webkit.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ap at webkit.org
------- Comment #1 from ap at webkit.org 2007-05-01 02:57 PDT -------
Since static objects are destructed in an order opposite to their construction,
I think you can use a destructor of a static object that is constructed early:
BOOL WINAPI DllMain (HANDLE hInst,
ULONG ul_reason_for_call,
LPVOID lpReserved)
{
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH: {
static class StaticPthreadDetach {
~StaticPthreadDetach() { pthread_win32_process_detach_np(); }
} staticPthreadDetach;
break;
...
}
AFAIK, multiple threads are only needed in OS X (because the network loader
uses JavaScriptCore to process proxy auto-configuration files), so I'm not sure
why pthreads-win32 is required for the Win32 port to work.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list