docs.unity3d.com
    目次を表示する/隠す

    Method Pause

    Pause()

    Hint that the current thread should pause.

    In Burst compiled code this will map to platform specific ways to hint that the current thread should be paused as it is performing a calculation that would benefit from not contending with other threads. Atomic operations in tight loops (like spin-locks) can benefit from use of this intrinsic.

    • On x86 systems this maps to the pause instruction.
    • On ARM systems this maps to the yield instruction.

    Note that this is not an operating system level thread yield, it only provides a hint to the CPU that the current thread can afford to pause its execution temporarily.

    Declaration
    public static void Pause()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)