Where should the RLB clear the "dirty_flag"?
Categories
(Data Platform and Tools :: Glean: SDK, task, P3)
Tracking
(Not tracked)
People
(Reporter: Dexter, Unassigned)
References
Details
(Whiteboard: [telemetry:fog:m7])
Kotlin and ios do this when entering foreground again, after being moved to background. That works because, in the mobile case, we want to track the case of being killed while in background.
On desktop we might want to tackle this differently: what about setting the flag to true right after init and clearing it at shutdown?
Comment 1•4 years ago
|
||
Sounds good to me. At present FOG doesn't have much at-shutdown code, but it'll need some at some point.
Putting a pin in here to remember that, due to lazy idle startup task scheduling we might not be able to count on shutdown happening after init, so we'll need to keep some state around. A small Atomic<bool> gHasAlreadyShutdown
in FOG.cpp
ought to do the trick.
Comment 2•4 years ago
|
||
There's an open bug for a shutdown API for Glean itself. Put it in "see also", but that might actually be a "depends on"
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
This is covered the client activity API and the RLB shutdown API, both now used by FOG.
Description
•