namespace art { // Command types for the linux membarrier system call. Different Linux installation may include // different subsets of these commands (at the same codepoints). // // Hardcoding these values is temporary until bionic and prebuilts glibc have an up to date // linux/membarrier.h. The order and values follow the current linux definitions. enumclass MembarrierCommand : int { // MEMBARRIER_CMD_QUERY
kQuery = 0, // MEMBARRIER_CMD_GLOBAL
kGlobal = (1 << 0), // MEMBARRIER_CMD_GLOBAL_EXPEDITED
kGlobalExpedited = (1 << 1), // MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED
kRegisterGlobalExpedited = (1 << 2), // MEMBARRIER_CMD_PRIVATE_EXPEDITED
kPrivateExpedited = (1 << 3), // MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED
kRegisterPrivateExpedited = (1 << 4), // MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE
kPrivateExpeditedSyncCore = (1 << 5), // MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
kRegisterPrivateExpeditedSyncCore = (1 << 6)
};
// Call membarrier(2) if available on platform and return result. This method can fail if the // command is not supported by the kernel. The underlying system call is linux specific. int membarrier(MembarrierCommand command);
} // namespace art
#endif// ART_LIBARTBASE_BASE_MEMBARRIER_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.