Library Version 12.1.6.0

Db::get_lk_exclusive()
Prev | Chapter 2. The Db Handle | Next

## Db::get_lk_exclusive()

    #include <db_cxx.h>

    int
    Db::get_lk_exclusive(int *onoff, int *nowait);

Returns whether the database handle is configured to obtain a write lock on the entire database. This can be set using the Db::set_lk_exclusive() method.

The `Db::get_lk_exclusive()` method may be called at any time during the life of the application.

The `Db::get_lk_exclusive()` always returns `0`.

### Parameters

#### onoff

Indicates whether the handle is configured for exclusive database locking. If `0`, it is not configured for exclusive locking. If `1`, then it is configured for exclusive locking.

#### nowait

Indicates whether the handle is configured for immediate locking. If `0`, then the locking operation will block until it can obtain an exclusive database lock. If `1`, then the locking operation will error out if it cannot immediately obtain an exclusive lock.

### Class

Db

### See Also

Database and Related Methods, Db::set_lk_exclusive()

Prev | Up | Next
Db::get_heap_regionsize() | Home | Db::get_lorder()