Index: src/main.c ================================================================== --- src/main.c +++ src/main.c @@ -12,11 +12,11 @@ ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.385 2007/08/18 10:59:20 danielk1977 Exp $ +** $Id: main.c,v 1.386 2007/08/20 11:12:41 drh Exp $ */ #include "sqliteInt.h" #include "os.h" #include @@ -321,15 +321,16 @@ if( delay<=0 ) return 0; } sqlite3OsSleep(db->pVfs, delay); return 1; #else + sqlite3 *db = (sqlite3 *)ptr; int timeout = ((sqlite3 *)ptr)->busyTimeout; if( (count+1)*1000 > timeout ){ return 0; } - sqlite3OsSleep(1000); + sqlite3OsSleep(db->pVfs, 1000000); return 1; #endif } /*