Open
Bug 799103
Opened 13 years ago
Updated 3 years ago
We should have AutoLocks/Mutexes in mfbt so they're usable outside of libxul
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
REOPENED
People
(Reporter: jesup, Unassigned)
Details
Even if we lose some functionality, we should have a standard set of AutoLock/MutexAutoLock-type functions for non-libxul code, perhaps that uses 'normal' MutexAutoLock if it is in xul. This has bitten us a bunch of times before we gave up and moved webrtc/signaling to XUL, and in c++ unit tests for webrtc. We could also find a way to expose enough functionality from xul to allow the non-xul versions to keep all the checks in MutexAutoLock, which would be even better.
Also handy anytime we want to move code from xul to gkmedia
Comment 1•13 years ago
|
||
Waldo,
Any thoughts here?
Comment 2•13 years ago
|
||
Seems reasonable enough.
Reporter | ||
Comment 3•3 years ago
|
||
Thoughts? Still relevant? (going through old bugs I filed)
Flags: needinfo?(nika)
Flags: needinfo?(mh+mozilla)
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(nika)
Flags: needinfo?(mh+mozilla)
Resolution: --- → DUPLICATE
Comment 5•3 years ago
|
||
My bad, PlatformMutex doesn't have autolocks. It might be worth adding some there (moving them from e.g. xpcom), and share them around (with e.g. the profiler).
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•