Open Bug 1638919 Opened 5 years ago Updated 5 years ago

Remove `create_thread` from moz_task

Categories

(Core :: XPCOM, task, P3)

task

Tracking

()

People

(Reporter: lina, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

We want to encourage Gecko Rust crates to use background tasks, via create_background_task_queue and (the not-yet-exposed) dispatch_background_task, instead of spinning up their own threads.

We have an allowlist for C++ static analysis, but nothing like that for Rust. Fortunately, the number of Gecko Rust crates is still small, so we can remove moz_task::create_thread entirely after converting all the callers.

Depends on: 1638918
Depends on: 1638920
Depends on: 1638922
Depends on: 1638927
Depends on: 1638929
You need to log in before you can comment on or make changes to this bug.