SQLITE_OPEN_FULLMUTEX and Thread Safety with Shared Prepared Statements
Issue Overview: Misunderstanding Serialized Mode and Prepared Statement Concurrency The core issue revolves around the misinterpretation of SQLite’s SQLITE_OPEN_FULLMUTEX flag and its implications for thread safety when a single prepared statement is shared across multiple threads. The user’s expectation was that enabling SQLITE_OPEN_FULLMUTEX would serialize access to a shared prepared statement such that one thread’s…