Changeset 243795 in webkit
- Timestamp:
- Apr 3, 2019, 5:42:38 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 9 edited
-
JavaScriptCore/ChangeLog (modified) (1 diff)
-
JavaScriptCore/inspector/remote/cocoa/RemoteInspectorCocoa.mm (modified) (1 diff)
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/MainThread.h (modified) (2 diffs)
-
WTF/wtf/cocoa/MainThreadCocoa.mm (modified) (1 diff)
-
WTF/wtf/ios/WebCoreThread.cpp (modified) (1 diff)
-
WTF/wtf/ios/WebCoreThread.h (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/ios/wak/WebCoreThreadSystemInterface.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r243754 r243795 1 2019-04-03 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Remote Inspector indicate callback should always happen on the main thread 4 https://bugs.webkit.org/show_bug.cgi?id=196513 5 <rdar://problem/49498284> 6 7 Reviewed by Devin Rousso. 8 9 * inspector/remote/cocoa/RemoteInspectorCocoa.mm: 10 (Inspector::RemoteInspector::receivedIndicateMessage): 11 When we have a WebThread, don't just run on the WebThread, 12 run on the MainThread with the WebThreadLock. 13 1 14 2019-04-02 Michael Saboff <msaboff@apple.com> 2 15 -
trunk/Source/JavaScriptCore/inspector/remote/cocoa/RemoteInspectorCocoa.mm
r242576 r243795 593 593 return; 594 594 595 callOnWebThreadOrDispatchAsyncOnMainThread(^{595 dispatchAsyncOnMainThreadWithWebThreadLockIfNeeded(^{ 596 596 RemoteControllableTarget* target = nullptr; 597 597 { -
trunk/Source/WTF/ChangeLog
r243747 r243795 1 2019-04-03 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Remote Inspector indicate callback should always happen on the main thread 4 https://bugs.webkit.org/show_bug.cgi?id=196513 5 <rdar://problem/49498284> 6 7 Reviewed by Devin Rousso. 8 9 * wtf/MainThread.h: 10 * wtf/cocoa/MainThreadCocoa.mm: 11 (WTF::dispatchAsyncOnMainThreadWithWebThreadLockIfNeeded): 12 * wtf/ios/WebCoreThread.cpp: 13 * wtf/ios/WebCoreThread.h: 14 1 15 2019-04-02 Keith Rollin <krollin@apple.com> 2 16 -
trunk/Source/WTF/wtf/MainThread.h
r242776 r243795 47 47 48 48 #if PLATFORM(COCOA) 49 WTF_EXPORT_PRIVATE void dispatchAsyncOnMainThreadWithWebThreadLockIfNeeded(void (^block)()); 49 50 WTF_EXPORT_PRIVATE void callOnWebThreadOrDispatchAsyncOnMainThread(void (^block)()); 50 51 #endif … … 109 110 using WTF::setMainThreadCallbacksPaused; 110 111 #if PLATFORM(COCOA) 112 using WTF::dispatchAsyncOnMainThreadWithWebThreadLockIfNeeded; 111 113 using WTF::callOnWebThreadOrDispatchAsyncOnMainThread; 112 114 #endif -
trunk/Source/WTF/wtf/cocoa/MainThreadCocoa.mm
r237099 r243795 141 141 } 142 142 143 void dispatchAsyncOnMainThreadWithWebThreadLockIfNeeded(void (^block)()) 144 { 145 #if USE(WEB_THREAD) 146 if (WebCoreWebThreadIsEnabled && WebCoreWebThreadIsEnabled()) { 147 dispatch_async(dispatch_get_main_queue(), ^{ 148 WebCoreWebThreadLock(); 149 block(); 150 }); 151 return; 152 } 153 #endif 154 dispatch_async(dispatch_get_main_queue(), block); 155 } 156 143 157 void callOnWebThreadOrDispatchAsyncOnMainThread(void (^block)()) 144 158 { -
trunk/Source/WTF/wtf/ios/WebCoreThread.cpp
r237099 r243795 28 28 29 29 #if USE(WEB_THREAD) 30 WTF_EXPORT_PRIVATE void (*WebCoreWebThreadLock)(void); 30 31 WTF_EXPORT_PRIVATE bool (*WebCoreWebThreadIsLockedOrDisabled)(void); 31 32 WTF_EXPORT_PRIVATE bool (*WebCoreWebThreadIsEnabled)(void); -
trunk/Source/WTF/wtf/ios/WebCoreThread.h
r237099 r243795 30 30 #endif 31 31 32 extern void (*WebCoreWebThreadLock)(void); 32 33 extern bool (*WebCoreWebThreadIsLockedOrDisabled)(void); 33 34 extern bool (*WebCoreWebThreadIsEnabled)(void); -
trunk/Source/WebCore/ChangeLog
r243786 r243795 1 2019-04-03 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Remote Inspector indicate callback should always happen on the main thread 4 https://bugs.webkit.org/show_bug.cgi?id=196513 5 <rdar://problem/49498284> 6 7 Reviewed by Devin Rousso. 8 9 * platform/ios/wak/WebCoreThreadSystemInterface.cpp: 10 (InitWebCoreThreadSystemInterface): 11 1 12 2019-04-02 Simon Fraser <simon.fraser@apple.com> 2 13 -
trunk/Source/WebCore/platform/ios/wak/WebCoreThreadSystemInterface.cpp
r237266 r243795 45 45 return; 46 46 47 INIT(WebThreadLock); 47 48 INIT(WebThreadIsLockedOrDisabled); 48 49 INIT(WebThreadIsEnabled);
Note:
See TracChangeset
for help on using the changeset viewer.