mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Updates so that "threadtest3[.exe]" can be built for windows with MSVC.
FossilOrigin-Name: 4ce585fb07274284e3add6adcb66ed06e4b109584704d1ec7152bf43ca8d5d85
This commit is contained in:
@ -75,7 +75,7 @@ static char *checkpoint_starvation_reader(int iTid, void *pArg){
|
||||
i64 iCount1, iCount2;
|
||||
sql_script(&err, &db, "BEGIN");
|
||||
iCount1 = execsql_i64(&err, &db, "SELECT count(x) FROM t1");
|
||||
usleep(CHECKPOINT_STARVATION_READMS*1000);
|
||||
sqlite3_sleep(CHECKPOINT_STARVATION_READMS);
|
||||
iCount2 = execsql_i64(&err, &db, "SELECT count(x) FROM t1");
|
||||
sql_script(&err, &db, "COMMIT");
|
||||
|
||||
@ -107,7 +107,7 @@ static void checkpoint_starvation_main(int nMs, CheckpointStarvationCtx *p){
|
||||
|
||||
for(i=0; i<4; i++){
|
||||
launch_thread(&err, &threads, checkpoint_starvation_reader, 0);
|
||||
usleep(CHECKPOINT_STARVATION_READMS*1000/4);
|
||||
sqlite3_sleep(CHECKPOINT_STARVATION_READMS/4);
|
||||
}
|
||||
|
||||
sqlite3_wal_hook(db.db, checkpoint_starvation_walhook, (void *)p);
|
||||
|
Reference in New Issue
Block a user