Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3a85486 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

suspended() and isSuspended() are const

Change-Id: I04b95970b5a645b64e7e64fffd46d868354dda66
parent a2a0a5d7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6702,7 +6702,8 @@ void AudioFlinger::EffectModule::setSuspended(bool suspended)
    Mutex::Autolock _l(mLock);
    mSuspended = suspended;
}
bool AudioFlinger::EffectModule::suspended()

bool AudioFlinger::EffectModule::suspended() const
{
    Mutex::Autolock _l(mLock);
    return mSuspended;
+3 −3
Original line number Diff line number Diff line
@@ -730,7 +730,7 @@ private:

                    void        suspend() { mSuspended++; }
                    void        restore() { if (mSuspended) mSuspended--; }
                    bool        isSuspended() { return (mSuspended != 0); }
                    bool        isSuspended() const { return (mSuspended != 0); }
        virtual     String8     getParameters(const String8& keys);
        virtual     void        audioConfigChanged_l(int event, int param = 0);
        virtual     status_t    getRenderPosition(uint32_t *halFrames, uint32_t *dspFrames);
@@ -1115,7 +1115,7 @@ private:
        status_t         start();
        status_t         stop();
        void             setSuspended(bool suspended);
        bool             suspended();
        bool             suspended() const;

        sp<EffectHandle> controlHandle();

@@ -1138,7 +1138,7 @@ private:
        status_t start_l();
        status_t stop_l();

        Mutex               mLock;      // mutex for process, commands and handles list protection
mutable Mutex               mLock;      // mutex for process, commands and handles list protection
        wp<ThreadBase>      mThread;    // parent thread
        wp<EffectChain>     mChain;     // parent effect chain
        int                 mId;        // this instance unique ID