JavaScriptCore:
2008-10-29 Steve Falkenburg <[email protected]>
<rdar://problem/6326563> Crash on launch
For Windows, export explicit functions rather than exporting data for atomicallyInitializedStaticMutex.
Exporting data from a DLL on Windows requires specifying declspec(dllimport) in the header used by
callers, but declspec(dllexport) when defined in the DLL implementation. By instead exporting
the explicit lock/unlock functions, we can avoid this.
Fixes a crash on launch, since we were previously erroneously exporting atomicallyInitializedStaticMutex as a function.
Reviewed by Darin Adler.
- wtf/Threading.h:
(WTF::lockAtomicallyInitializedStaticMutex):
(WTF::unlockAtomicallyInitializedStaticMutex):
- wtf/ThreadingWin.cpp:
(WTF::lockAtomicallyInitializedStaticMutex):
(WTF::unlockAtomicallyInitializedStaticMutex):
WebKit/win:
2008-10-29 Steve Falkenburg <[email protected]>
<rdar://problem/6326563> Crash on launch
For Windows, export explicit functions rather than exporting data for atomicallyInitializedStaticMutex.
Exporting data from a DLL on Windows requires specifying declspec(dllimport) in the header used by
callers, but declspec(dllexport) when defined in the DLL implementation. By instead exporting
the explicit lock/unlock functions, we can avoid this.
Fixes a crash on launch, since we were previously erroneously exporting atomicallyInitializedStaticMutex as a function.
Reviewed by Darin Adler.
- WebKit.vcproj/WebKit.def:
- WebKit.vcproj/WebKit_debug.def: