[Webkit-unassigned] [Bug 125305] New: Incorrect usage of ThreadingOnce class.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 5 07:31:06 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=125305
Summary: Incorrect usage of ThreadingOnce class.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: peavo at outlook.com
I have used the ThreadingOnce class incorrectly.
One cannot rely on that statics are threadsafe, so it can't be used as a static within a function.
On Mac, the class cannot be used as a global static, as global constructors/destructors fails to compile with the current compiler settings.
Based on this, I think the best way is to use the pthread implementation on Mac/Unix/..., and use the ThreadingOnce class for platforms which doesn't use pthreads.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list