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)

defect

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
Waldo, Any thoughts here?
Seems reasonable enough.

Thoughts? Still relevant? (going through old bugs I filed)

Flags: needinfo?(nika)
Flags: needinfo?(mh+mozilla)
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(nika)
Flags: needinfo?(mh+mozilla)
Resolution: --- → DUPLICATE

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 → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.