Stream: git-wasmtime

Topic: wasmtime / PR #5315 fix: atomit wait does not sleep long ...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 07:52):

haraldh opened PR #5315 from fix/wait_sleep_again to main:

From the documentation of CondVar::wait_timeout:

The semantics of this function are equivalent to wait except that the thread
will be blocked for roughly no longer than dur. This method should not be
used for precise timing due to anomalies such as preemption or platform
differences that might not cause the maximum amount of time waited to be
precisely dur.

Therefore, go to sleep again, if the thread has not slept long enough.

Signed-off-by: Harald Hoyer <harald@profian.com>

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 07:53):

haraldh edited PR #5315 from fix/wait_sleep_again to main:

From the documentation of CondVar::wait_timeout:

The semantics of this function are equivalent to wait except that the thread
will be blocked for roughly no longer than dur. This method should not be
used for precise timing due to anomalies such as preemption or platform
differences that might not cause the maximum amount of time waited to be
precisely dur.

Therefore, go to sleep again, if the thread has not slept long enough.

Signed-off-by: Harald Hoyer <harald@profian.com>

Fixes: #5312
Obsoletes: #5314

view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 15:36):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 15:36):

alexcrichton merged PR #5315.


Last updated: Oct 23 2024 at 20:03 UTC