gecko-dev/xpcom
Aaron Klotz 112f1594bf Bug 1573623: Add RunOnShutdown, a variant of ClearOnShutdown which supports passing callables; r=froydnj
This patch adds `RunOnShutdown`, which allows the caller to supply any callable
to be invoked during the specified shutdown phase. This allows us to do more
than just clear smart pointers without needing to write a bunch of observer
service boilerplate.

We use `std::function` to hold the callable.

Differential Revision: https://phabricator.services.mozilla.com/D41816

--HG--
extra : moz-landing-system : lando
2019-08-15 19:08:39 +00:00
..
base Bug 1573623: Add RunOnShutdown, a variant of ClearOnShutdown which supports passing callables; r=froydnj 2019-08-15 19:08:39 +00:00
build Bug 1282776 - Finalize crash reports for child process crashes happening too early r=froydnj 2019-08-09 14:23:19 +00:00
components Bug 1418624 - Allow mozilla::Result to be moved, make unwrap{,Err}() move, and add inspect() APIs that return references. r=froydnj 2019-08-13 08:26:18 +00:00
doc
ds Bug 1557825 part 1 - Implement 'display:block ruby'. r=emilio 2019-08-14 14:38:31 +00:00
glue Bug 1554380 - Fix some issues in mozilla::ReadAhead. r=aklotz 2019-05-29 10:13:28 +00:00
idl-parser Bug 1567739 - Stop using deprecated rust libc integer types in xpidl. r=froydnj 2019-07-23 13:42:44 +00:00
io Bug 1561912, r=michal 2019-07-26 22:58:39 +00:00
libxpt/xptcall
reflect Bug 1570563 - Sync in xptcstubs code from x86_64 to x86_64_gnu r=froydnj 2019-08-05 20:00:45 +00:00
rust Bug 1567739 - Stop using deprecated rust libc integer types in xpidl. r=froydnj 2019-07-23 13:42:44 +00:00
string Bug 1490593 - Move FFI for encoding_rs::mem to a vendored crate. r=froydnj 2019-08-14 07:53:34 +00:00
system Bug 1553558 - collect countryCode in system info off the main thread. r=mconley,Standard8 2019-08-02 12:55:38 +00:00
tests Bug 1298602 - split condition in TestExpirationTracker; r=KrisWright 2019-07-31 18:16:35 +00:00
threads Bug 1573160 - shutdown newly-spawned threads if we're shutting down; r=mccr8 2019-08-15 17:29:26 +00:00
windbgdlg Bug 1528651 - Fix some trivial warnings and re-enable warnings-as-errors on Windows in some directories. r=dmajor 2019-02-19 20:42:11 +09:00
xpidl
moz.build
xpcom-config.h.in Bug 1570982 - remove CPP_THROW_NEW; r=glandium 2019-08-14 01:32:41 +00:00
xpcom-private.h.in