cuda::pipeline::quit#
2026-10-01
2 min read time
This page documents cuda::pipeline::quit, which releases the calling thread’s shared ownership of the pipeline and its shared state.
Defined in header <cuda/pipeline>:
template <cuda::thread_scope Scope>
__host__ __device__
bool cuda::pipeline<Scope>::quit();
Quits the current thread’s participation in the collective ownership of the corresponding cuda::pipeline_shared_state. Ownership of cuda::pipeline_shared_state is released by the last invoking thread.
Return Value
true if ownership of the shared state was released, otherwise false.
Note
After the completion of a call to cuda::pipeline::quit, no other operations other than
cuda::pipeline::~pipeline may be
called by the current thread.