pub unsafe extern "C" fn cuCtxPopCurrent_v2(
pctx: *mut CUcontext,
) -> CUresult
Expand description
\brief Pops the current CUDA context from the current CPU thread.
Pops the current CUDA context from the CPU thread and passes back the old context handle in \p *pctx. That context may then be made current to a different CPU thread by calling ::cuCtxPushCurrent().
If a context was current to the CPU thread before ::cuCtxCreate() or ::cuCtxPushCurrent() was called, this function makes that context current to the CPU thread again.
\param pctx - Returned popped context handle
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT \notefnerr
\sa ::cuCtxCreate, ::cuCtxDestroy, ::cuCtxGetApiVersion, ::cuCtxGetCacheConfig, ::cuCtxGetDevice, ::cuCtxGetFlags, ::cuCtxGetLimit, ::cuCtxPushCurrent, ::cuCtxSetCacheConfig, ::cuCtxSetLimit, ::cuCtxSynchronize