Name
sqlite3_mutex_enter() — Acquire a mutex lock
Definition
void sqlite3_mutex_enter( sqlite3_mutex* mutex );
-
mutex
A mutual exclusion lock. If a NULL value is passed, the function will return immediately.
Description
This function attempts to have the calling thread acquire a mutual exclusion lock. This is typically done when entering a critical section of code. The function (and thread) will block until access to the lock is granted.
Like most of the other mutex functions, this function is
designed to replicate the default success behavior when given a
NULL mutex. This allows the result of sqlite3_db_mutex()
to be passed directly to
sqlite3_mutex_enter()
(or most other mutex functions) without having to test the
current threading mode.
Get Using SQLite now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.