JP
2013-11-08 17:13:39 UTC
Hi all,
I'm using a SQLite database, and in my application I have with several
threads reading/writing. Sometimes I get errors accessing the database,
probably because one thread tries to read while another is writing. I can
handle this situation using a mutex. However, there is also an external
application that works with the same database, and I can not synchronize
the access in any way between that application and mine. What surprises me
is that I thought SQLite had a kind of time-out, around 5 seconds, before
aborting the operation, if there are access problems, but the SOCI methods
abort the operation instantly, isn't there any time-out? or re-try the
operation a number of times?
Thanks a lot in advance.
JP
I'm using a SQLite database, and in my application I have with several
threads reading/writing. Sometimes I get errors accessing the database,
probably because one thread tries to read while another is writing. I can
handle this situation using a mutex. However, there is also an external
application that works with the same database, and I can not synchronize
the access in any way between that application and mine. What surprises me
is that I thought SQLite had a kind of time-out, around 5 seconds, before
aborting the operation, if there are access problems, but the SOCI methods
abort the operation instantly, isn't there any time-out? or re-try the
operation a number of times?
Thanks a lot in advance.
JP