lock method

void lock()

Implementation

void lock() {
    lib.lock(toCpp(), );
}