-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25/11/11 02:07, joel.bertr...@external.gdfsuez.com wrote:
> If sqlite3_step() returns BUSY_TIMEOUT, I try to restart statement :
> 
> While((result = sqlite3_step(stmt)) == SQLITE_BUSY) { Usleep(_random
> [0s, 1s[_); }

Is there any particular reason you do this?  Just set a busy timeout and
SQLite has an internal function that does a series of usleeps so you won't
get busy errors in the first place until the overall timeout elapses.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk7RBf4ACgkQmOOfHg372QSc3gCePh1Ur8x1r6+8k2GKfQFTnZsD
bBgAoNdkXWhqwx9rvk767oB/p0WqtaZJ
=MF6R
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to