Changeset 161886 in webkit


Ignore:
Timestamp:
Jan 13, 2014 9:46:17 AM (10 years ago)
Author:
andersca@apple.com
Message:

Move another deprecated symbol to DeprecatedSymbolsUsedBySafari.mm
https://bugs.webkit.org/show_bug.cgi?id=126909

Reviewed by Ryosuke Niwa.

  • wtf/MainThread.cpp:
  • wtf/MainThread.h:
  • wtf/mac/DeprecatedSymbolsUsedBySafari.mm:

(WTF::callOnMainThread):

Location:
trunk/Source/WTF
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r161883 r161886  
     12014-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
    1132014-01-13  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/Source/WTF/wtf/MainThread.cpp

    r161589 r161886  
    242242}
    243243
    244 void callOnMainThread(const Function<void ()>& function)
    245 {
    246     callOnMainThread(std::function<void ()>(function));
    247 }
    248 
    249244void setMainThreadCallbacksPaused(bool paused)
    250245{
  • trunk/Source/WTF/wtf/MainThread.h

    r161589 r161886  
    4747
    4848WTF_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 ()>&);
    5349
    5450WTF_EXPORT_PRIVATE void setMainThreadCallbacksPaused(bool paused);
  • trunk/Source/WTF/wtf/mac/DeprecatedSymbolsUsedBySafari.mm

    r161879 r161886  
    2626#include "config.h"
    2727
     28#include "Functional.h"
     29#include "MainThread.h"
    2830#include "StdLibExtras.h"
    2931#include <mutex>
     
    3436namespace WTF {
    3537
    36 WTF_EXPORT void lockAtomicallyInitializedStaticMutex();
    37 WTF_EXPORT void unlockAtomicallyInitializedStaticMutex();
     38WTF_EXPORT_PRIVATE void callOnMainThread(const Function<void ()>&);
     39WTF_EXPORT_PRIVATE void lockAtomicallyInitializedStaticMutex();
     40WTF_EXPORT_PRIVATE void unlockAtomicallyInitializedStaticMutex();
     41
     42void callOnMainThread(const Function<void ()>& function)
     43{
     44    callOnMainThread(std::function<void ()>(function));
     45}
    3846
    3947static std::mutex& atomicallyInitializedStaticMutex()
Note: See TracChangeset for help on using the changeset viewer.