mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-11 06:08:09 +00:00
fix: enable locks for threadsafe pdfium (#1052)
* enable locks for threadsafe pdfium Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * fix deadlock in pypdfium2 backend Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> --------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
3
docling/utils/locks.py
Normal file
3
docling/utils/locks.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import threading
|
||||
|
||||
pypdfium2_lock = threading.Lock()
|
||||
Reference in New Issue
Block a user