Closed Bug 1676977 Opened 5 years ago Closed 5 years ago

Allow use of DataMutex::AutoLock

Categories

(Core :: XPCOM, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: alaskanemily, Assigned: alaskanemily)

References

Details

Attachments

(1 file)

Currently this prevents code like https://searchfox.org/mozilla-central/rev/5a1a34953a26117f3be1a00db20c8bbdc03273d6/widget/nsPrinterCUPS.h#110 from simply returning a lock. Since it's already possible to use the type if its declaration is auto this change just allows us to return it from functions.

Blocks: 1676976

Since it's already possible to use the type if its declaration is auto, this
change just allows us to return it from functions.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: