Closed Bug 267577 Opened 20 years ago Closed 20 years ago

nsObserverService not threadsafe

Categories

(Core :: XPCOM, defect)

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 30494
Future

People

(Reporter: darin.moz, Assigned: darin.moz)

Details

(Keywords: helpwanted)

nsObserverService not threadsafe

See for example bug 234620.

nsObserverService, if used from multiple threads, can result in memory
corruption and other badness.  The problem occurs whenever NotifyObservers is
called on a background thread.

We should implement some sort of solution that doesn't conflict too badly with
the frozen nsIObserverService.

Some possibilities:
https://bugzilla.mozilla.org/show_bug.cgi?id=234620#c48
Keywords: helpwanted
Target Milestone: --- → Future

*** This bug has been marked as a duplicate of 30494 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.