[Webkit-unassigned] [Bug 92365] Refactor cross thread communication
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 26 19:37:51 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=92365
--- Comment #1 from Kwonjin Jeong <gram at company100.net> 2012-07-26 19:37:54 PST ---
Correct some mistakes and change the name of the virtual method.
> class TaskThread : public ThreadSafeRefCounted<TaskThread> {
> public:
> ~TaskThread();
virtual ~TaskThread();
> void start();
> void stop();
>
> // Schedule a task to be executed by the task thread.
> void postTask(const Function<void()>& task);
> // Schedule a task to be executed by the task thread and also specify the task group.
> // Tasks scheduled with this method can be cancelled by removeTasks() method.
> void postTask(const Function<void()>& task, PassRefPtr<TaskGroup> group);
>
> // Schedule a task to be immediately executed by the task thread.
> void postImmediateTask(PassOwnPtr<TaskThreadTask> task);
void postImmediateTask(const Function<void()>& task);
> // Schedule a task to be executed by the task thread and also specify the task group.
> // Tasks scheduled with this method can be cancelled by removeTasks() method.
> void postImmediateTask(const Function<void()>& task, PassRefPtr<TaskGroup> group);
>
> // Cancel pending tasks that belong to the given group.
> void removeTasks(PassRefPtr<TaskGroup> group);
>
> protected:
> TaskThread();
> // Subclasses can override this method to specify an action to be executed
> // on thread termination
> virtual void onRunLoopTerminated();
virtual void didStopThread();
> };
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list