zx_thread_legacy_yield
Summary
Yield the CPU of the current thread back to the scheduler.
Declaration
#include <zircon/syscalls.h>
zx_status_t zx_thread_legacy_yield(uint32_t options);
Description
zx_thread_legacy_yield()
causes the calling thread to yield the CPU back to the scheduler.
Yield may result in other threads with similar importance running ahead of the current thread,
however, the exact behavior is unspecified.
options
must be zero.
Rights
TODO(https://fxbug.dev/42107318)
Return value
zx_thread_legacy_yield(uint32_t options)
will always return ZX_OK
for zero options
.
Any other options
value, will result in ZX_ERR_INVALID_ARGS
.
See also
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-29 UTC."],[],[]]