Closed Bug 1622082 Opened 5 years ago Closed 5 years ago

Expose `NS_CreateBackgroundTaskQueue` to Rust

Categories

(Core :: XPCOM, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: lina, Assigned: lina)

References

Details

Attachments

(1 file)

Let's slap an extern "C" onto its declaration so that we can use it in Rust code (via moz_task).

This commit moves NS_CreateBackgroundTaskQueue into an extern "C"
block, adds a create_background_task_queue function to moz_task,
and makes it possible to dispatch Rust TaskRunnables to any event
target, instead of just an nsIThread.

Oops, I mixed up my languages! 😆

Summary: Expose `NS_CreateBackgroundTaskQueue` to C → Expose `NS_CreateBackgroundTaskQueue` to Rust
Pushed by kcambridge@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dce5589e1fc6 Expose `NS_CreateBackgroundTaskQueue` to `moz_task`. r=KrisWright
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
See Also: → 1638929
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: