Lines Matching refs:mSequence
48 void init() { mAck = 0; mSequence = 0; }
51 volatile int32_t mSequence;
58 : mSequence(0), mShared(shared)
69 int32_t sequence = mSequence;
71 android_atomic_acquire_store(sequence, &shared->mSequence);
74 android_atomic_release_store(sequence, &shared->mSequence);
75 mSequence = sequence;
91 return ack - mSequence & ~1 ? SSQ_PENDING /* seq differ */ :
110 int32_t mSequence;
117 : mSequence(0), mSeed(1), mShared(shared)
127 int32_t before = shared->mSequence;
128 if (before == mSequence) {
137 before = shared->mSequence;
141 int32_t after = android_atomic_release_load(&shared->mSequence);
145 mSequence = before; // mSequence is even after poll success
162 android_atomic_release_store(ack, &mShared->mAck); // mSequence is odd after "done"
166 int32_t mSequence;