sqlite3_mutex_methods class
An instance of this structure defines the low-level routines used to allocate and use mutexes. Usually, the default mutex implementations provided by SQLite are sufficient, however the application has the option of substituting a custom implementation for specialized deployments or systems for which SQLite does not provide a suitable implementation.
In this case, the application creates and populates an instance of this structure to pass to sqlite3_config() along with the SQLITE_CONFIG_MUTEX option. Additionally, an instance of this structure can be used as an output variable when querying the system for the current mutex implementation, using the SQLITE_CONFIG_GETMUTEX option. The xMutexInit method defined by this structure is invoked as part of system initialization by the sqlite3_initialize() function. The xMutexInit routine is called by SQLite exactly once for each effective call to sqlite3_initialize(). The xMutexEnd method defined by this structure is invoked as part of system shutdown by the sqlite3_shutdown() function. The implementation of this method is expected to release all outstanding resources obtained by the mutex methods implementation, especially those obtained by the xMutexInit method. The xMutexEnd() interface is invoked exactly once for each call to sqlite3_shutdown(). The remaining seven methods defined by this structure (xMutexAlloc, xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and xMutexNotheld) implement the following interfaces (respectively):
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- xMutexAlloc ↔ PtrDefxMutexAlloc
-
getter/setter pair
- xMutexEnd ↔ PtrDefxMutexInit
-
getter/setter pair
- xMutexEnter ↔ PtrDefxMutexFree
-
getter/setter pair
- xMutexFree ↔ PtrDefxMutexFree
-
getter/setter pair
- xMutexHeld ↔ PtrDefxMutexTry
-
getter/setter pair
- xMutexInit ↔ PtrDefxMutexInit
-
getter/setter pair
- xMutexLeave ↔ PtrDefxMutexFree
-
getter/setter pair
- xMutexNotheld ↔ PtrDefxMutexTry
-
getter/setter pair
- xMutexTry ↔ PtrDefxMutexTry
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited