mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
release GIL during collection open/close
This commit is contained in:
parent
75b7ebb156
commit
dc8cf9d554
1 changed files with 5 additions and 2 deletions
|
@ -256,11 +256,14 @@ class RustBackend:
|
|||
media_db_path=media_db_path,
|
||||
log_path=log_path,
|
||||
)
|
||||
)
|
||||
),
|
||||
release_gil=True,
|
||||
)
|
||||
|
||||
def close_collection(self):
|
||||
self._run_command(pb.BackendInput(close_collection=pb.Empty()))
|
||||
self._run_command(
|
||||
pb.BackendInput(close_collection=pb.Empty()), release_gil=True
|
||||
)
|
||||
|
||||
def template_requirements(
|
||||
self, template_fronts: List[str], field_map: Dict[str, int]
|
||||
|
|
Loading…
Reference in a new issue