Name
sqlite3_mutex — A mutual exclusion lock
Description
The sqlite3_mutex structure
provides an abstract mutual exclusion lock. An application can
create its own locks using the sqlite3_mutex_alloc() call, but it is much more
common to reference the lock used by the database connection.
This lock can be retrieved with the sqlite3_db_mutex() call. Mutex locks are
locked and unlocked using the sqlite3_mutex_enter() and sqlite3_mutex_leave()
calls.
The sqlite3_mutex structure
is opaque, and an application should never access any of the
data fields directly.
See Also
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access