On Thu, Jul 19, 2012 at 11:04 PM, Jason Duell <jdu...@mozilla.com> wrote:
> From a glance at the code, it appears that it's safe to Cancel and null-out
> an nsITimer from any given thread, so long as the timer callback that's
> pointed to has thread-safe refcounting.  Correct?

At least the HTML parser relies on it being safe to call Cancel on a
thread that doesn't own the timer. (And the decision to rely on that
was based on investigating the timer code.)

-- 
Henri Sivonen
hsivo...@iki.fi
http://hsivonen.iki.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to