Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::ScopedCudaContext Class Reference

#include <cuda_context.h>

Collaboration diagram for cuttlefish::ScopedCudaContext:
Collaboration graph
[legend]

Public Member Functions

 ScopedCudaContext (CUcontext ctx, const CudaFunctions *cuda)
 
 ~ScopedCudaContext ()
 
bool ok () const
 
 ScopedCudaContext (const ScopedCudaContext &)=delete
 
ScopedCudaContextoperator= (const ScopedCudaContext &)=delete
 
 ScopedCudaContext (ScopedCudaContext &&other)
 
ScopedCudaContextoperator= (ScopedCudaContext &&)=delete
 

Private Attributes

const CudaFunctionscuda_ = nullptr
 
bool push_succeeded_ = false
 

Constructor & Destructor Documentation

◆ ScopedCudaContext() [1/3]

cuttlefish::ScopedCudaContext::ScopedCudaContext ( CUcontext  ctx,
const CudaFunctions cuda 
)

◆ ~ScopedCudaContext()

cuttlefish::ScopedCudaContext::~ScopedCudaContext ( )

◆ ScopedCudaContext() [2/3]

cuttlefish::ScopedCudaContext::ScopedCudaContext ( const ScopedCudaContext )
delete

◆ ScopedCudaContext() [3/3]

cuttlefish::ScopedCudaContext::ScopedCudaContext ( ScopedCudaContext &&  other)

Member Function Documentation

◆ ok()

bool cuttlefish::ScopedCudaContext::ok ( ) const
inline

◆ operator=() [1/2]

ScopedCudaContext & cuttlefish::ScopedCudaContext::operator= ( const ScopedCudaContext )
delete

◆ operator=() [2/2]

ScopedCudaContext & cuttlefish::ScopedCudaContext::operator= ( ScopedCudaContext &&  )
delete

Member Data Documentation

◆ cuda_

const CudaFunctions* cuttlefish::ScopedCudaContext::cuda_ = nullptr
private

◆ push_succeeded_

bool cuttlefish::ScopedCudaContext::push_succeeded_ = false
private

The documentation for this class was generated from the following files: