gecko-dev/xpcom/rust
Lina Cambridge faf2fd15e4 Bug 1639018 - Change `TaskRunnable::dispatch` to take owned runnables. r=froydnj
This matches how the `Dispatch(already_AddRefed<nsIRunnable>)`
overloads work in C++: `Dispatch` takes ownership of the runnable, and
leaks it if dispatch fails—because the thread manager is shutting down,
for instance. This avoids a race where a runnable can be released on
either the owning or target thread.

Rust doesn't allow arbitrary `Self` types yet (see
rust-lang/rust#44874), so we need to change `dispatch` and
`dispatch_with_options` to be associated methods.

Differential Revision: https://phabricator.services.mozilla.com/D75858
2020-05-20 20:54:49 +00:00
..
gecko_logger Bug 1624090 - Make it possible to forward rust logging into the Gecko logger r=froydnj 2020-05-09 11:24:33 +00:00
gkrust_utils Bug 1587468 - Update uuid to 0.8.1. r=webdriver-reviewers,whimboo,emilio 2019-12-06 00:47:50 +00:00
gtest Bug 1626587 - Part 4: Remove mozilla::IsPod for HashMapEntry. r=jwalden 2020-04-27 12:00:48 +00:00
moz_task Bug 1639018 - Change `TaskRunnable::dispatch` to take owned runnables. r=froydnj 2020-05-20 20:54:49 +00:00
nserror Bug 1562642 - add missing license in xpcom/ r=froydnj 2019-11-11 21:44:32 +00:00
nsstring Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio 2020-04-25 21:21:32 +00:00
xpcom Bug 1631952 - Ensure that all XPCOM interface methods have unique names when implementing them in Rust. r=nika 2020-04-21 23:01:36 +00:00