zx_system_barrier
Summary
Issue a barrier on other running threads.
Declaration
#include <zircon/syscalls-next.h>
zx_status_t zx_system_barrier(uint32_t options);
Description
Issues a barrier of the requested type on all running threads.
Options: types of barriers
ZX_SYSTEM_BARRIER_DATA_MEMORY
This issues a data memory barrier on all running threads.
ZX_SYSTEM_BARRIER_INSTRUCTION_STREAM
This issues a memory barrier and serializes the instruction stream on all running threads.
Rights
This operation does not require any rights.
Return value
ZX_OK
if the requested barriers were issued.
Errors
ZX_ERR_INVALID_ARGS
options contains invalid options.
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 2025-09-30 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 2025-09-30 UTC."],[],[],null,[]]