Changeset 161886 in webkit
- Timestamp:
- Jan 13, 2014 9:46:17 AM (10 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r161883 r161886 1 2014-01-13 Anders Carlsson <andersca@apple.com> 2 3 Move another deprecated symbol to DeprecatedSymbolsUsedBySafari.mm 4 https://bugs.webkit.org/show_bug.cgi?id=126909 5 6 Reviewed by Ryosuke Niwa. 7 8 * wtf/MainThread.cpp: 9 * wtf/MainThread.h: 10 * wtf/mac/DeprecatedSymbolsUsedBySafari.mm: 11 (WTF::callOnMainThread): 12 1 13 2014-01-13 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WTF/wtf/MainThread.cpp
r161589 r161886 242 242 } 243 243 244 void callOnMainThread(const Function<void ()>& function)245 {246 callOnMainThread(std::function<void ()>(function));247 }248 249 244 void setMainThreadCallbacksPaused(bool paused) 250 245 { -
trunk/Source/WTF/wtf/MainThread.h
r161589 r161886 47 47 48 48 WTF_EXPORT_PRIVATE void callOnMainThread(std::function<void ()>); 49 50 // FIXME: This symbol is used by Safari and should be removed once Safari is no longer using it.51 template<typename> class Function;52 WTF_EXPORT_PRIVATE void callOnMainThread(const Function<void ()>&);53 49 54 50 WTF_EXPORT_PRIVATE void setMainThreadCallbacksPaused(bool paused); -
trunk/Source/WTF/wtf/mac/DeprecatedSymbolsUsedBySafari.mm
r161879 r161886 26 26 #include "config.h" 27 27 28 #include "Functional.h" 29 #include "MainThread.h" 28 30 #include "StdLibExtras.h" 29 31 #include <mutex> … … 34 36 namespace WTF { 35 37 36 WTF_EXPORT void lockAtomicallyInitializedStaticMutex(); 37 WTF_EXPORT void unlockAtomicallyInitializedStaticMutex(); 38 WTF_EXPORT_PRIVATE void callOnMainThread(const Function<void ()>&); 39 WTF_EXPORT_PRIVATE void lockAtomicallyInitializedStaticMutex(); 40 WTF_EXPORT_PRIVATE void unlockAtomicallyInitializedStaticMutex(); 41 42 void callOnMainThread(const Function<void ()>& function) 43 { 44 callOnMainThread(std::function<void ()>(function)); 45 } 38 46 39 47 static std::mutex& atomicallyInitializedStaticMutex()
Note: See TracChangeset
for help on using the changeset viewer.