Closed Bug 619096 Opened 12 years ago Closed 12 years ago
Memory Reporter Manager should be threadsafe
In bug 615978, I really wanted to report sqlite memory usage. I was adding reporters on a non-main thread. Doing it any other way is a harder. Ideally, any thread could add, remove, and enumerate the reporters. This patch basically locks the array and protects mRefCount.
Comment on attachment 497523 [details] [diff] [review] patch v.1 looks good!
Attachment #497523 - Flags: review?(vladimir) → review+
Attachment #497523 - Flags: approval2.0? → approval2.0+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.