Open kynikos opened 10 years ago
Also update the related STYLE rule.
Or even better re-implement everything putting the actions on a Queue and processing them in the core on a dedicated thread that handles the databate connection internally.
Then a new panel could be added to the logs, to display the ongoing and queued actions (and maybe let cancel them?) See also #208
If all queries are done in a dedicated thread, remove the check_same_thread=False
flag from sqlite3.connect
in core.databases.MemoryDB
and core.databases.Database
.
Passing the connection to the database as a parameter between functions may be a simpler way to protect from race conditions, instead of the current DBProtection class.