Skip to main content

Contexted

Trait Contexted 

Source
pub trait Contexted {
    // Required method
    fn get_context(&self) -> Arc<Context>;

    // Provided methods
    fn guard_context(&self) -> ContextGuard { ... }
    fn sync_context(&self) -> Result<()> { ... }
}
Expand description

Object tied up to a CUDA context

Required Methods§

Provided Methods§

Source

fn guard_context(&self) -> ContextGuard

RAII utility for push/pop onto the thread-local context stack

Source

fn sync_context(&self) -> Result<()>

Blocking until all tasks in current context end

Implementations on Foreign Types§

Source§

impl Contexted for Arc<Context>

Implementors§