Lines Matching refs:g_top_manager
22 static AtExitManager* g_top_manager = NULL; variable
24 AtExitManager::AtExitManager() : next_manager_(g_top_manager) { in AtExitManager()
28 DCHECK(!g_top_manager); in AtExitManager()
30 g_top_manager = this; in AtExitManager()
34 if (!g_top_manager) { in ~AtExitManager()
38 DCHECK_EQ(this, g_top_manager); in ~AtExitManager()
41 g_top_manager = next_manager_; in ~AtExitManager()
52 if (!g_top_manager) { in RegisterTask()
57 AutoLock lock(g_top_manager->lock_); in RegisterTask()
58 g_top_manager->stack_.push(task); in RegisterTask()
63 if (!g_top_manager) { in ProcessCallbacksNow()
68 AutoLock lock(g_top_manager->lock_); in ProcessCallbacksNow()
70 while (!g_top_manager->stack_.empty()) { in ProcessCallbacksNow()
71 base::Closure task = g_top_manager->stack_.top(); in ProcessCallbacksNow()
73 g_top_manager->stack_.pop(); in ProcessCallbacksNow()
77 AtExitManager::AtExitManager(bool shadow) : next_manager_(g_top_manager) { in AtExitManager()
78 DCHECK(shadow || !g_top_manager); in AtExitManager()
79 g_top_manager = this; in AtExitManager()