> If this is about a race for SDR, don't we need a lock to protect the mBusy state? > Are multiple calls to SDR originate from multiple threads, or from event processing on a single thread?
> NS_IMPL_ISUPPORTS1(nsSDRContext, nsIInterfaceRequestor)
since the code isn't threadsafe, no lock is required. the only issue is reentrancy. so yes, this is from a single thread.
> If this is about a race for SDR, don't we need a lock to protect the mBusy
state?
> Are multiple calls to SDR originate from multiple threads, or from event
processing on a single thread?
> NS_IMPL_ ISUPPORTS1( nsSDRContext, nsIInterfaceReq uestor)
since the code isn't threadsafe, no lock is required. the only issue is reentrancy. so yes, this is from a single thread.