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

Commit 2351a9de authored by Jerome Gaillard's avatar Jerome Gaillard Committed by Android (Google) Code Review
Browse files

Merge "Fix wrong type in host version of ThreadBase" into main

parents 533049d8 89acb1c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -48,7 +48,7 @@ protected:
        nsecs_t nextWakeup = mQueue.nextWakeup(lock);
        nsecs_t nextWakeup = mQueue.nextWakeup(lock);
        std::chrono::nanoseconds duration = std::chrono::nanoseconds::max();
        std::chrono::nanoseconds duration = std::chrono::nanoseconds::max();
        if (nextWakeup < std::numeric_limits<nsecs_t>::max()) {
        if (nextWakeup < std::numeric_limits<nsecs_t>::max()) {
            int timeout = nextWakeup - WorkQueue::clock::now();
            nsecs_t timeout = nextWakeup - WorkQueue::clock::now();
            if (timeout < 0) timeout = 0;
            if (timeout < 0) timeout = 0;
            duration = std::chrono::nanoseconds(timeout);
            duration = std::chrono::nanoseconds(timeout);
        }
        }