Changeset 141580 in webkit
- Timestamp:
- Feb 1, 2013 4:54:33 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r141578 r141580 1 2013-02-01 Seulgi Kim <seulgikim@company100.net> 2 3 [Gtk][WK2] Fix build after recent WebKit2 changes 4 https://bugs.webkit.org/show_bug.cgi?id=108588 5 6 Reviewed by Andreas Kling. 7 8 Don't remove WorkQueue during execution. 9 Following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544 10 11 * Platform/gtk/WorkQueueGtk.cpp: 12 (WorkQueue::EventSource::~EventSource): 13 (WorkQueue::EventSource::executeEventSource): 14 (WorkQueue::dispatch): 15 (WorkQueue::dispatchAfterDelay): 16 (WorkQueue::dispatchOnTermination): 17 1 18 2013-02-01 Alexis Menard <alexis@webkit.org> 2 19 -
trunk/Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp
r130612 r141580 43 43 { 44 44 } 45 ~EventSource() 46 { 47 m_workQueue->deref(); 48 } 45 49 46 50 void cancel() … … 54 58 { 55 59 ASSERT(eventSource); 56 WorkQueue* queue = eventSource->m_workQueue;57 {58 MutexLocker locker(queue->m_isValidMutex);59 if (!queue->m_isValid)60 return;61 }62 63 60 eventSource->m_function(); 64 61 } … … 207 204 void WorkQueue::dispatch(const Function<void()>& function) 208 205 { 206 ref(); 209 207 GRefPtr<GSource> dispatchSource = adoptGRef(g_idle_source_new()); 210 208 ASSERT(dispatchSource); … … 216 214 void WorkQueue::dispatchAfterDelay(const Function<void()>& function, double delay) 217 215 { 216 ref(); 218 217 GRefPtr<GSource> dispatchSource = adoptGRef(g_timeout_source_new(static_cast<guint>(delay * 1000))); 219 218 ASSERT(dispatchSource); … … 224 223 void WorkQueue::dispatchOnTermination(WebKit::PlatformProcessIdentifier process, const Function<void()>& function) 225 224 { 225 ref(); 226 226 GRefPtr<GSource> dispatchSource = adoptGRef(g_child_watch_source_new(process)); 227 227 ASSERT(dispatchSource);
Note: See TracChangeset
for help on using the changeset viewer.