Lines Matching refs:g_top_manager
23 static AtExitManager* g_top_manager = nullptr; variable
28 : processing_callbacks_(false), next_manager_(g_top_manager) { in AtExitManager()
32 DCHECK(!g_top_manager); in AtExitManager()
34 g_top_manager = this; in AtExitManager()
38 if (!g_top_manager) { in ~AtExitManager()
42 DCHECK_EQ(this, g_top_manager); in ~AtExitManager()
46 g_top_manager = next_manager_; in ~AtExitManager()
57 if (!g_top_manager) { in RegisterTask()
62 AutoLock lock(g_top_manager->lock_); in RegisterTask()
63 DCHECK(!g_top_manager->processing_callbacks_); in RegisterTask()
64 g_top_manager->stack_.push(std::move(task)); in RegisterTask()
69 if (!g_top_manager) { in ProcessCallbacksNow()
79 AutoLock lock(g_top_manager->lock_); in ProcessCallbacksNow()
80 tasks.swap(g_top_manager->stack_); in ProcessCallbacksNow()
81 g_top_manager->processing_callbacks_ = true; in ProcessCallbacksNow()
95 DCHECK(g_top_manager->stack_.empty()); in ProcessCallbacksNow()
99 AutoLock lock(g_top_manager->lock_); in DisableAllAtExitManagers()
104 : processing_callbacks_(false), next_manager_(g_top_manager) { in AtExitManager()
105 DCHECK(shadow || !g_top_manager); in AtExitManager()
106 g_top_manager = this; in AtExitManager()