PUGIXML AND MULTITHREADING #646
Answered
by
zeux
Alexey-cpu
asked this question in
Q&A
-
I use pugixml in my project and I have a question concerning multithreading: is it safe to create TWO DIFFERENT xml documents and read/write/modify these documents from different threads ? |
Beta Was this translation helpful? Give feedback.
Answered by
zeux
Nov 5, 2024
Replies: 1 comment 3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah maybe this should be reworded. Each thread exclusively accessing its own document is safe; you can have 5 documents and 5 threads, as long as each thread only reads/writes a separate document. "tree" in the documentation refers to a document as well.