mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 13:26:22 +00:00

The RPC interface relies on waiting on atomic signals to coordinate which side of the protocol is in control of the shared buffer. The GPU client supports briefly suspending the executing thread group. This is used by the thread scheduler to identify which thread groups can be switched out so that others may execute. This allows us to ensure that other threads get a chance to make forward progress while these threads wait on the atomic signal. This is currently only relevant on the client-side. We could use an alternative implementation on the server that uses the standard `nanosleep` on supported hosts. Reviewed By: JonChesterfield, tianshilei1992 Differential Revision: https://reviews.llvm.org/D147238
LLVM libc ========= This directory and its subdirectories contain source code for llvm-libc, a retargetable implementation of the C standard library. LLVM is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.