[Webkit-unassigned] [Bug 74535] [chromium] Add postCancellable[Delayed]Task to CCThread

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 15 18:27:30 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74535





--- Comment #18 from Tien-Ren Chen <trchen at chromium.org>  2011-12-15 18:27:31 PST ---
(In reply to comment #16)
> I'm not aware of any way to implement an isPending() API for a cross-thread task.  I think chromium just punts on it.

Yea because it doesn't make much sense to only return isPending().

We need something that either

1. provides lock semantics, for example:
taskQueue.pause();
if (task.isPending())
    task.cancel();

2. or atomic compare and exchange , for example:
if (task.cancelIfIsPending())
    doThingsAssumeUndone;

-- 
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