johnwhitington / camlpdf

OCaml library for reading, writing and modifying PDF files
Other
200 stars 29 forks source link

Audit CamlPDF for concurrent usage #57

Open johnwhitington opened 1 year ago

johnwhitington commented 1 year ago

Per https://github.com/johnwhitington/camlpdf/issues/56#issuecomment-1510509751:

Also having read_debug, error_on_malformed and debug_always_treat_malformed as global mutable is not such a great idea in a concurrent world. These parameters should likely be made part of the Pdfio.input structure which I suspect you always have one under hand when you need to consult these parameters.