Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Bug: StartSampling updates mLastTimeReading while not make any read #25

Open
antonkov opened this issue Jul 14, 2016 · 0 comments
Open

Comments

@antonkov
Copy link

If mHandler will start execute addSample() at least 1ms after updating mLastTimeReading in startSampling() then IF in addSample will not work and we will add sample with incorrectly small time

if (timeInMs == 0 || ...

public void startSampling() { if (mSamplingCounter.getAndIncrement() == 0) { mHandler.startSamplingThread(); mLastTimeReading = SystemClock.elapsedRealtime(); } }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant