[sqlite] Stuck in busy handler

2015-08-22 Thread Simon Slavin
On 22 Aug 2015, at 2:33pm, Jon Kuhn wrote: > I am working on project that uses SQLite to save records in an in memory > database and periodically push them to an on-disk database. The project is > multi-threaded with several threads accessing the databases (memory and > on-disk) at the same

[sqlite] Stuck in busy handler

2015-08-22 Thread Jon Kuhn
I am running into a situation with 2 threads where a busy handler is being called on one thread and unless the busy handler returns 0 and the calling code retries the query, neither thread will be able to make progress. Below is some background information: I am working on project that uses