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

Commit ba57b7d5 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "SingleStateQueue: Add last method to Mutator"

parents d9850c3b 59fef328
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -99,6 +99,13 @@ private:
            return mShared->mAck - sequence >= 0;
        }

        // returns the last value written (or the contents of the shared buffer after initialization
        // if no value was written).
        T last() const
        {   // assume no sequence check required - we are the writer.
            return mShared->mValue;
        }

    private:
        int32_t     mSequence;
        Shared * const mShared;