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

Skip to content
Commit 07738134 authored by Leon Scroggins III's avatar Leon Scroggins III Committed by Leon Scroggins
Browse files

Before deleting callbacks, ensure they aren't running

I3c1eccb36914f29560600d48bb08b1b8f2fe7c96 makes sure that a
VSyncDispatchTimerQueue unregisters its callback if a new one is moved
into it, but it's possible for the class to be used directly, so there
is still the possibility of deleting the callbacks while running.

Update the destructor to wait for any callbacks to finish before
deleting them. Also log an error, since the caller should've
unregistered them.

Bug: 279209321
Test: infeasible
Change-Id: Ia2c5436944c88284912be4963740be41de5c21d3
parent b2253605
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