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

Skip to content
Commit a93f346e authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

cameraserver: clear all requests and signal mRequestSignal from RequestThread during disconnect().



This helps reduce wait time on RequestThread::join() in the following situation:

T1 calls disconnect() -> Request
T2 is in RequestThread::threadLoop -> waitForNextRequest -> mRequestSignal.wait()
which has a timeout of 50ms

The 50ms timeout is cleared if we call clear() instead of
clearRepeatingRequest().

Also call repeatingRequestEnd() HAL call from clear() for correctness.

Bug: 246214490

Test: Camera CTS
Test: Vendor Testing

Change-Id: I4e8e7309b7ee7018840e078e7346ab97d549645b
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent 037845be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment