mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
faf2fd15e4
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 |
||
---|---|---|
.. | ||
bits_client | ||
src | ||
Bits.cpp | ||
Bits.h | ||
Bits.jsm | ||
Cargo.toml | ||
components.conf | ||
moz.build | ||
nsIBits.idl |