Open Bug 1604870 Opened 4 years ago Updated 2 years ago

Make it possible to check if we are on the background event target without holding a task queue

Categories

(Core :: XPCOM, task)

task

Tracking

()

People

(Reporter: KrisWright, Unassigned)

References

(Blocks 1 open bug)

Details

It would be nice to have some NS_IsBackgroundThread() check for the background event target so that it won't be necessary to create a task queue for the sole purpose of checking IsOnCurrentThread() on it. Since we already have BackgroundEventTarget::IsOnCurrentThread() [1] it just needs to be exposed to the API.

[1] https://searchfox.org/mozilla-central/rev/6305f6935f496b3a302c7afcc579399a4217729c/xpcom/threads/nsThreadManager.cpp#122

Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.