Re: nsITimer thread safety

2012-07-19 Thread Henri Sivonen
On Thu, Jul 19, 2012 at 11:04 PM, Jason Duell 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 be

Re: nsITimer thread safety

2012-07-19 Thread Jason Duell
On 07/19/2012 01:16 PM, Boris Zbarsky wrote: On 7/19/12 4:04 PM, Jason Duell wrote: nsITimer.idl says nothing about thread safety. (Can we add some?) 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 tha

Re: nsITimer thread safety

2012-07-19 Thread Boris Zbarsky
On 7/19/12 4:04 PM, Jason Duell wrote: nsITimer.idl says nothing about thread safety. (Can we add some?) 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. Co

nsITimer thread safety

2012-07-19 Thread Jason Duell
nsITimer.idl says nothing about thread safety. (Can we add some?) 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? Jason __