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

Skip to content
Commit a5131c57 authored by Lais Andrade's avatar Lais Andrade
Browse files

Fix benchmark crash on wait for destroyed callback

Fix benchmark crash error:

`FORTIFY: pthread_mutex_lock called on a destroyed mutex`

Caused by the bench loop trying to wait on the callback promise future
after the callback instance was destroyed.

The fix grabs the promise future before performing the HAL operation, so
it can access the fulfilled value after the promise fulfilled and then
destroyed.

Change-Id: I4504129672a11ad1662ea36c79f522d754535765
Fix: 336977792
Test: atest VibratorHalIntegrationBenchmark
Flag: TEST_ONLY
parent 01868eb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment