Skip to main content

obj_txn_begin_write

Function obj_txn_begin_write 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn obj_txn_begin_write( db: *mut obj_db_t, out_txn: *mut *mut obj_write_txn_t, ) -> obj_error_t
Expand description

Begin a write transaction against db. Acquires the writer slot (subject to the configured busy timeout).

ยงSafety

  • db must be a valid handle returned by obj_open* and not yet closed.
  • out_txn must be a writable obj_write_txn_t *. On success it is set to a fresh handle; on failure it is set to NULL.