lib/ovsdb-idl.c
/* If 'lock_name' is nonnull, configures 'idl' to obtain the named lock from
 * the database server and to avoid modifying the database when the lock cannot
 * be acquired (that is, when another client has the same lock).
 *
 * If 'lock_name' is NULL, drops the locking requirement and releases the
 * lock. */
If 'lock_name' is nonnull, configures 'idl' to obtain the named lock from
the database server and to avoid modifying the database when the lock cannot
be acquired (that is, when another client has the same lock).

If 'lock_name' is NULL, drops the locking requirement and releases the
lock.
If ' lock_name ' is nonnull configures ' idl ' to obtain the named lock from the database server and to avoid modifying the database when the lock cannot be acquired ( that is when another client has the same lock ) . If ' lock_name ' is NULL drops the locking requirement and releases the lock .
void
ovsdb_idl_set_lock(struct ovsdb_idl *idl, const char *lock_name)
{
    for (;;) {
        struct jsonrpc_msg *msg = ovsdb_idl_db_set_lock(&idl->data, lock_name);
        if (!msg) {
            break;
        }
        if (idl->session) {
            jsonrpc_session_send(idl->session, msg);
        }
    }
}
void ovsdb_idl_set_lock ( struct ovsdb_idl * idl , const char * lock_name ) { for ( ; ; ) { struct jsonrpc_msg * msg = ovsdb_idl_db_set_lock ( & idl -> data , lock_name ) ; if ( ! msg ) { break ; } if ( idl -> session ) { jsonrpc_session_send ( idl -> session , msg ) ; } } }
If 'lock_name' is nonnull, configures 'idl' to obtain the named lock from
 the database server and to avoid modifying the database when the lock cannot
 be acquired (that is, when another client has the same lock).
If ' lock_name ' is nonnull configures ' idl ' to obtain the named lock from the database server and to avoid modifying the database when the lock cannot be acquired ( that is when another client has the same lock ) .