Summary: | [GTK] Runtime critical warnings sometimes at start up when using the network process | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, gustavo, svillar, zan | ||||
Priority: | P2 | Keywords: | Gtk | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Carlos Garcia Campos
2015-01-28 07:42:37 PST
Created attachment 245542 [details]
Patch
Detach the worker thread when the work queue is destroyed, right before deleting the main loop
Attachment 245542 [details] did not pass style-queue:
ERROR: Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:55: More than one command on the same line [whitespace/newline] [4]
Total errors found: 1 in 2 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 245542 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=245542&action=review > Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:55 > - m_workQueueThread = createThread(reinterpret_cast<WTF::ThreadFunction>(&WorkQueue::startWorkQueueThread), this, threadName); > + m_workQueueThread = createThread(threadName, [this] { g_main_loop_run(m_eventLoop.get()); }); WorkQueue is ref-counted. This should probably pass a RefPtr protector into the lambda. Committed r179395: <http://trac.webkit.org/changeset/179395> |