servo/components/background_hang_monitor
yvt 602c02edd2 fix(bhm): deliver exit signal reliably (for real)
> However, as it turns out, `crossbeam-channel`'s channels don't drop
> remaining messages until all associated senders *and* receivers are
> dropped. This means the exit signal won't be delivered as long as
> there's at least one `HangMonitorRegister` or
> `BackgroundHangMonitorChan` maintaining a copy of the sender. To work
> around this and guarantee a rapid delivery of the exit signal, the
> sender is wrapped in `Arc`, and only the worker thread maintains a
> strong reference, thus ensuring both the sender and receiver are
> dropped as soon as the worker thread exits.
2021-06-21 00:07:26 +09:00
..
tests fix(bhm): deliver exit signal reliably when component registration and signal submission coincide 2021-06-20 13:09:26 +09:00
background_hang_monitor.rs fix(bhm): deliver exit signal reliably (for real) 2021-06-21 00:07:26 +09:00
Cargo.toml Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
lib.rs add linux sampler 2019-03-29 23:05:44 -04:00
sampler.rs Deduplicate parking_lot and friends by updating it to 0.9 2019-09-05 10:47:39 +02:00
sampler_linux.rs Use UnsafeCell instead of static mut in background_hang_monitor/sampler_linux.rs 2020-06-05 00:11:37 +02:00
sampler_mac.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
sampler_windows.rs Fix some new warnings 2019-06-22 14:59:09 +02:00