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

Skip to content
Commit 2d407c1e authored by Uma Mehta's avatar Uma Mehta Committed by Sungtak Lee
Browse files

Codec2: Check errno during syscall (FUTEX_WAIT) failure in fence.wait



In C2SurfaceSyncObj, fence.wait() is handled as FUTEX_WAIT syscall.
In case of syscall failure (including timeout), returned value by
syscall() will always be -1, but with appropriate error code in errno.
So, check errno to return correct error code from waitForChange()
and which allows correct error code to be returned from fence.wait().

Without this, C2_BAD_VALUE is being returned even when fence.wait()
has timed-out. In case of timeout, C2_TIMED_OUT should be returned.

Author: Shrikara B

Bug: 215487388
Signed-off-by: default avatarUma Mehta <quic_umamehta@quicinc.com>
Change-Id: I15761b35e3a03b0cefaa117db75fdfd21e53b339
parent 8943fa90
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