drain.cc (10913:38dbdeea7f1f) | drain.cc (10998:cd22d66592bf) |
---|---|
1/* 2 * Copyright (c) 2012, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 136 unchanged lines hidden (view full) --- 145 std::lock_guard<std::mutex> lock(globalLock); 146 return _allDrainable.size(); 147} 148 149 150 151Drainable::Drainable() 152 : _drainManager(DrainManager::instance()), | 1/* 2 * Copyright (c) 2012, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 136 unchanged lines hidden (view full) --- 145 std::lock_guard<std::mutex> lock(globalLock); 146 return _allDrainable.size(); 147} 148 149 150 151Drainable::Drainable() 152 : _drainManager(DrainManager::instance()), |
153 _drainState(DrainState::Running) | 153 _drainState(_drainManager.state()) |
154{ 155 _drainManager.registerDrainable(this); 156} 157 158Drainable::~Drainable() 159{ 160 _drainManager.unregisterDrainable(this); 161} --- 21 unchanged lines hidden --- | 154{ 155 _drainManager.registerDrainable(this); 156} 157 158Drainable::~Drainable() 159{ 160 _drainManager.unregisterDrainable(this); 161} --- 21 unchanged lines hidden --- |