xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_db_mutex.3 (revision b9988867a8ad969c45a52aa7628bc932ec98d46b)
1.Dd January 24, 2024
2.Dt SQLITE3_DB_MUTEX 3
3.Os
4.Sh NAME
5.Nm sqlite3_db_mutex
6.Nd retrieve the mutex for a database connection
7.Sh SYNOPSIS
8.In sqlite3.h
9.Ft sqlite3_mutex *
10.Fo sqlite3_db_mutex
11.Fa "sqlite3*"
12.Fc
13.Sh DESCRIPTION
14This interface returns a pointer the sqlite3_mutex object
15that serializes access to the database connection
16given in the argument when the threading mode is Serialized.
17If the threading mode is Single-thread or Multi-thread
18then this routine returns a NULL pointer.
19.Sh IMPLEMENTATION NOTES
20These declarations were extracted from the
21interface documentation at line 8209.
22.Bd -literal
23SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
24.Ed
25.Sh SEE ALSO
26.Xr sqlite3 3 ,
27.Xr sqlite3_mutex 3
28