Changeset 174864 in webkit


Ignore:
Timestamp:
Oct 18, 2014, 12:04:31 PM (11 years ago)
Author:
mitz@apple.com
Message:

WorkQueue dispatches functions but isn’t a FunctionDispatcher
https://bugs.webkit.org/show_bug.cgi?id=137853

Reviewed by Anders Carlsson.

Source/WebKit2:

  • Platform/WorkQueue.h: Changed to inherit from FunctionDispatcher.

Source/WTF:

  • wtf/FunctionDispatcher.h: Added header guards.
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r174818 r174864  
     12014-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
    1102014-10-17  Carlos Garcia Campos  <cgarcia@igalia.com>
    211
  • trunk/Source/WTF/wtf/FunctionDispatcher.h

    r158123 r174864  
    2424 */
    2525
     26#ifndef FunctionDispatcher_h
     27#define FunctionDispatcher_h
     28
    2629#include <functional>
    2730#include <wtf/ThreadSafeRefCounted.h>
     
    4548
    4649using WTF::FunctionDispatcher;
     50
     51#endif // FunctionDispatcher_h
  • trunk/Source/WebKit2/ChangeLog

    r174861 r174864  
     12014-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
    1102014-10-18  Michael Catanzaro  <mcatanzaro@igalia.com>
    211
  • trunk/Source/WebKit2/Platform/WorkQueue.h

    r169926 r174864  
    3535#include <functional>
    3636#include <wtf/Forward.h>
     37#include <wtf/FunctionDispatcher.h>
    3738#include <wtf/Functional.h>
    3839#include <wtf/HashMap.h>
     
    5253#endif
    5354
    54 class WorkQueue : public ThreadSafeRefCounted<WorkQueue> {
     55class WorkQueue final : public FunctionDispatcher {
    5556public:
    5657    enum class QOS {
     
    6364   
    6465    static PassRefPtr<WorkQueue> create(const char* name, QOS = QOS::Default);
    65     ~WorkQueue();
     66    virtual ~WorkQueue();
    6667
    67     void dispatch(std::function<void ()>);
     68    virtual void dispatch(std::function<void ()>) override;
    6869    void dispatchAfter(std::chrono::nanoseconds, std::function<void ()>);
    6970
Note: See TracChangeset for help on using the changeset viewer.