From 6882a04fb36642862b11efe514251d32070c3d65 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 25 Aug 2016 19:20:41 +0300 Subject: Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443) Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f Reviewed-by: Konstantin Tokarev --- Source/JavaScriptCore/heap/HeapTimer.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'Source/JavaScriptCore/heap/HeapTimer.h') diff --git a/Source/JavaScriptCore/heap/HeapTimer.h b/Source/JavaScriptCore/heap/HeapTimer.h index f7576edd9..740a71f57 100644 --- a/Source/JavaScriptCore/heap/HeapTimer.h +++ b/Source/JavaScriptCore/heap/HeapTimer.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Apple Inc. All rights reserved. + * Copyright (C) 2012, 2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -26,24 +26,26 @@ #ifndef HeapTimer_h #define HeapTimer_h +#include #include #include #if USE(CF) #include -#elif PLATFORM(BLACKBERRY) -#include +#endif + +#if USE(GLIB) && !PLATFORM(EFL) && !PLATFORM(QT) +#include #elif PLATFORM(QT) #include #include #include #include -#elif PLATFORM(EFL) -typedef struct _Ecore_Timer Ecore_Timer; #endif namespace JSC { +class JSLock; class VM; #if PLATFORM(QT) && !USE(CF) @@ -59,7 +61,7 @@ public: HeapTimer(VM*); #endif - virtual ~HeapTimer(); + JS_EXPORT_PRIVATE virtual ~HeapTimer(); virtual void doWork() = 0; protected: @@ -72,11 +74,7 @@ protected: RetainPtr m_runLoop; CFRunLoopTimerContext m_context; - Mutex m_shutdownMutex; -#elif PLATFORM(BLACKBERRY) - void timerDidFire(); - - BlackBerry::Platform::Timer m_timer; + Lock m_shutdownMutex; #elif PLATFORM(QT) void timerEvent(QTimerEvent*); void customEvent(QEvent*); @@ -88,6 +86,10 @@ protected: Ecore_Timer* add(double delay, void* agent); void stop(); Ecore_Timer* m_timer; +#elif USE(GLIB) + void timerDidFire(); + RefPtr m_apiLock; + GRefPtr m_timer; #endif private: -- cgit v1.2.1