sm6375-common: power-libperfmgr: ADPF: refine StaleTimeHandler
Bug: 256515601 Test: build Change-Id: Ia7f80c838961b837733c457b189f16c6433cf3c3
This commit is contained in:
parent
798d139e00
commit
beb75b2b3d
2 changed files with 16 additions and 28 deletions
|
|
@ -92,10 +92,8 @@ class PowerHintSession : public BnPowerHintSession {
|
|||
private:
|
||||
class StaleTimerHandler : public MessageHandler {
|
||||
public:
|
||||
StaleTimerHandler(PowerHintSession *session)
|
||||
: mSession(session), mIsMonitoring(false), mIsSessionDead(false) {}
|
||||
StaleTimerHandler(PowerHintSession *session) : mSession(session), mIsSessionDead(false) {}
|
||||
void updateTimer();
|
||||
void updateTimer(time_point<steady_clock> staleTime);
|
||||
void handleMessage(const Message &message) override;
|
||||
void setSessionDead();
|
||||
|
||||
|
|
@ -104,7 +102,6 @@ class PowerHintSession : public BnPowerHintSession {
|
|||
std::mutex mClosedLock;
|
||||
std::mutex mMessageLock;
|
||||
std::atomic<time_point<steady_clock>> mStaleTime;
|
||||
std::atomic<bool> mIsMonitoring;
|
||||
bool mIsSessionDead;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue