Closed Bug 1783299 Opened 2 years ago Closed 2 years ago

Support threadsafe strings in StaticPrefs

Categories

(Core :: Preferences: Backend, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

Graphics makes use of string prefs that should be kept up to date and we want to be able to access those off the main thread because of DOM workers.

Prior to this patch, one would need to manually instantiate a copy of a
string from a preference on the main thread in order to access it in a
threadsafe manner on another thread.

This patch adds support for a DataMutexString threadsafe type for
mirror: always type StaticPrefs, and works similarly to the existing
atomic types.

Blocks: 1783309
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c71190090952
Add support for threadsafe mirrored StaticPref strings. r=KrisWright
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: