Re: [sqlite] implementing busy_handler callback

2006-08-23 Thread John Stanton
. However my experience with these handlers was that they made a mess of the code and later on the code was incomprehensible to someone looking at the code for the first time. Subject: [sqlite] implementing busy_handler

Re: [sqlite] implementing busy_handler callback

2006-08-22 Thread Ritesh Kapoor
I think a good way of using sqlite in a multithreaded app is to have your own mutex lock for the DB. Everytime you need to execute a query just call the lock() function for your mutex and then proceed with sqlite3_exec() calls. Followed by a unlock() call. Your mutex wouldn't return if the

[sqlite] implementing busy_handler callback

2006-08-22 Thread vadivel . subramaniam
Hi All, I am trying to integrate SQLite in a multithreaded C++ application which runs on Linux. I have gone through the SQLIte documentation, but it's not clear whether the sqlite3_exec() will retry the query when the busy handler callback is implemented and returns a non-zero value. From