Database contructs like rows, tables, or the database itself can be manually locked to prevent concurrent access. More...
Functions | |
| db_hlock_t | db_lock (db_t, const db_oid_t *, db_flags_t lock_mode) |
| db_result_t | db_unlock (db_t, const db_oid_t *, db_hlock_t) |
| db_hlock_t | db_lock_table (db_t, const db_objname_t *, db_flags_t lock_mode) |
| db_result_t | db_get_tableid (db_t, const db_objname_t *, db_oid_t *) |
Lock Type | |
|
| |
| #define | DB_LOCK_DEFAULT _DB_LOCK_DEFAULT |
| #define | DB_LOCK_SHARED _DB_LOCK_SHARED |
| #define | DB_LOCK_EXCLUSIVE _DB_LOCK_EXCLUSIVE |
| #define | DB_LOCK_MODE_MASK _DB_LOCK_MODE_MASK |
Lock Duration | |
|
| |
| #define | DB_TRY_LOCK _DB_TRY_LOCK |
| #define | DB_COMMIT_LOCK _DB_COMMIT_LOCK |
| #define | DB_INSTANT_LOCK _DB_INSTANT_LOCK |
| #define | DB_MANUAL_LOCK _DB_MANUAL_LOCK |
| #define | DB_LOCK_DURATION_MASK _DB_LOCK_DURATION_MASK |
| #define | DB_LOCKING_MASK _DB_LOCKING_MASK |
Database contructs like rows, tables, or the database itself can be manually locked to prevent concurrent access.