On Mon, 31 Dec 2018 14:25:41 -0700
"Keith Medcalf" <kmedc...@dessus.com> wrote:

> def run_query_with_timeout(db, query, timeout, whizround)
>       stmt = prepare(db, query)
>       create_thread A interrupt_function(db, stmt, timeout,
> whizround) while sqlite3_step(stmt) == SQLITE_ROW
>               ... process the row ...
>       cancel_thread A
>       join_thread A /* make sure the thread is ended */
>       sqlite3_finalize(stmt)

If I don't want to use threads, can I call sqlite3_interrupt from a
signal handler?  

--jkl

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to