Function tikv::storage::kv::with_tls_engine[][src]

pub unsafe fn with_tls_engine<E, F, R>(f: F) -> R where
    E: Engine,
    F: FnOnce(&E) -> R, 

Execute the closure on the thread local engine.

Safety

Precondition: TLS_ENGINE_ANY is non-null.