[webkit-reviews] review requested: [Bug 70127] [WebKit2] Initialize threading while loading WebKit2 library : [Attachment 111220] Initialize threading.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 17 00:07:57 PDT 2011


Nayan Kumar K <nayankk at motorola.com> has asked	for review:
Bug 70127: [WebKit2] Initialize threading while loading WebKit2 library
https://bugs.webkit.org/show_bug.cgi?id=70127

Attachment 111220: Initialize threading.
https://bugs.webkit.org/attachment.cgi?id=111220&action=review

------- Additional Comments from Nayan Kumar K <nayankk at motorola.com>
This method uses shared library constructor logic to initialize threading
(Thanks to Martin for the pointers). This will ensure that threading gets
initialized in all code paths. As per the GCC documentation
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html, this constructor is
guaranteed to get called prior to calling application main function.

Currently makefile changes are made only for GTK port. If we agree to proceed
with this approach, I will make changes to other build system as well.


More information about the webkit-reviews mailing list