Changeset 174864 in webkit
- Timestamp:
- Oct 18, 2014, 12:04:31 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r174818 r174864 1 2014-10-18 Dan Bernstein <mitz@apple.com> 2 3 WorkQueue dispatches functions but isn’t a FunctionDispatcher 4 https://bugs.webkit.org/show_bug.cgi?id=137853 5 6 Reviewed by Anders Carlsson. 7 8 * wtf/FunctionDispatcher.h: Added header guards. 9 1 10 2014-10-17 Carlos Garcia Campos <cgarcia@igalia.com> 2 11 -
trunk/Source/WTF/wtf/FunctionDispatcher.h
r158123 r174864 24 24 */ 25 25 26 #ifndef FunctionDispatcher_h 27 #define FunctionDispatcher_h 28 26 29 #include <functional> 27 30 #include <wtf/ThreadSafeRefCounted.h> … … 45 48 46 49 using WTF::FunctionDispatcher; 50 51 #endif // FunctionDispatcher_h -
trunk/Source/WebKit2/ChangeLog
r174861 r174864 1 2014-10-18 Dan Bernstein <mitz@apple.com> 2 3 WorkQueue dispatches functions but isn’t a FunctionDispatcher 4 https://bugs.webkit.org/show_bug.cgi?id=137853 5 6 Reviewed by Anders Carlsson. 7 8 * Platform/WorkQueue.h: Changed to inherit from FunctionDispatcher. 9 1 10 2014-10-18 Michael Catanzaro <mcatanzaro@igalia.com> 2 11 -
trunk/Source/WebKit2/Platform/WorkQueue.h
r169926 r174864 35 35 #include <functional> 36 36 #include <wtf/Forward.h> 37 #include <wtf/FunctionDispatcher.h> 37 38 #include <wtf/Functional.h> 38 39 #include <wtf/HashMap.h> … … 52 53 #endif 53 54 54 class WorkQueue : public ThreadSafeRefCounted<WorkQueue>{55 class WorkQueue final : public FunctionDispatcher { 55 56 public: 56 57 enum class QOS { … … 63 64 64 65 static PassRefPtr<WorkQueue> create(const char* name, QOS = QOS::Default); 65 ~WorkQueue();66 virtual ~WorkQueue(); 66 67 67 v oid dispatch(std::function<void ()>);68 virtual void dispatch(std::function<void ()>) override; 68 69 void dispatchAfter(std::chrono::nanoseconds, std::function<void ()>); 69 70
Note:
See TracChangeset
for help on using the changeset viewer.