Searched refs:g_shared_state (Results 1 – 3 of 3) sorted by relevance
27 LazyInstance<SharedState>::Leaky g_shared_state = LAZY_INSTANCE_INITIALIZER; variable36 g_shared_state.Pointer()->manager.Register(this, bytes); in DiscardableMemoryEmulated()42 g_shared_state.Pointer()->manager.Unregister(this); in ~DiscardableMemoryEmulated()47 return g_shared_state.Pointer()->manager.ReduceMemoryUsage(); in ReduceMemoryUsage()53 g_shared_state.Pointer()->manager.ReduceMemoryUsageUntilWithinLimit(bytes); in ReduceMemoryUsageUntilWithinLimit()58 g_shared_state.Pointer()->manager.PurgeAll(); in PurgeForTesting()69 if (!g_shared_state.Pointer()->manager.AcquireLock(this, &purged)) in Lock()79 g_shared_state.Pointer()->manager.ReleaseLock(this); in Unlock()
32 LazyInstance<SharedState>::Leaky g_shared_state = LAZY_INSTANCE_INITIALIZER; variable47 g_shared_state.Pointer()->manager.Register(this, bytes); in DiscardableMemoryMac()55 g_shared_state.Pointer()->manager.Unregister(this); in ~DiscardableMemoryMac()63 if (!g_shared_state.Pointer()->manager.AcquireLock(this, &purged)) in Lock()73 g_shared_state.Pointer()->manager.ReleaseLock(this); in Unlock()
42 LazyInstance<SharedState>::Leaky g_shared_state = LAZY_INSTANCE_INITIALIZER; variable70 SharedState* const shared_state = g_shared_state.Pointer(); in CreateLockedMemoryWithType()103 g_shared_state.Pointer()->manager.PurgeAll(); in PurgeForTesting()