1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Per-frame progress from long provider calls, so a host watchdog can tell slow from stuck.
//!
//! The watch is thread-local, so a provider needs no handle to report it.
use RefCell;
thread_local!
/// Calls `progressed` each time a provider call on this thread gets further, until the watch drops.
/// Ends a [`watch_progress`] watch, restoring the one before it.
pub