pdftract/crates/pdftract-py/tests
jedarden 870d7073f0 feat(pdftract-1tswa): implement GIL release with py.allow_threads on extraction entry points
This implements proper GIL release around all blocking extraction calls
so Python threads can run concurrently during PDF processing.

Changes:
- extract_py: Wrap extract_pdf call with py.allow_threads
- extract_stream: Release GIL during sleep between recv attempts
- Added Python multi-threading test to verify parallelism
- Added rlib to crate-type for unit test support

Acceptance criteria:
- PASS: GIL is released during extraction via py.allow_threads
- PASS: Multi-threading test added to Python test suite
- PASS: Code compiles and formatting verified

Closes: pdftract-1tswa

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 21:23:00 -04:00
..
test_conformance.py feat(pdftract-1tswa): implement GIL release with py.allow_threads on extraction entry points 2026-05-26 21:23:00 -04:00