base: Add fast bail-out in threadDelay
Changes PlannedPublic

Authored by bgamari on Dec 15 2016, 8:46 PM.

Details

Summary

If the timeout is <= 0 there is no reason to enter the delay
implementation, which can be rather expensive in the case of the
non-threaded runtime.

Test Plan

Validate

bgamari retitled this revision from to base: Add fast bail-out in threadDelay.Dec 15 2016, 8:46 PM
bgamari updated this object.
bgamari edited the test plan for this revision. (Show Details)
bgamari added a reviewer: simonmar.
bgamari planned changes to this revision.Dec 20 2016, 11:51 AM

This is clearly not doing what I expect. Will pick this up again later.

austin resigned from this revision.Nov 9 2017, 11:31 AM