zx_futex_wake_single_owner
Summary
Wake one thread waiting on a futex, and set the ownership of the futex to that thread.
Declaration
#include <zircon/syscalls.h>
zx_status_t zx_futex_wake_single_owner(const zx_futex_t* value_ptr);
Description
Wake one thread waiting on a futex.
If a thread is woken, ownership of the futex is transferred to that thread. If no
thread is woken (because none are waiting), ownership of the futex is set to none.
See zx_futex_wake()
for a full description.
Rights
None.
Return value
zx_futex_wake_single_owner()
returns ZX_OK
on success.
Errors
ZX_ERR_INVALID_ARGS
value_ptr is not aligned.
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 2023-12-13 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 2023-12-13 UTC."],[],[]]