deps/src/libxml2-2.9.1/doc/threads.html
| |
|
|
|
|
|
|
|
|
|
| Developer Menu | |
|
| API Indexes | |
|
| Related links | |
|
|
|
|
|
|
Starting with 2.4.7, libxml2 makes provisions to ensure that concurrent threads can safely work in parallel parsing different documents. There is however a couple of things to do to ensure it:
Note that the thread safety cannot be ensured for multiple threads sharing the same document, the locking must be done at the application level, libxml exports a basic mutex and reentrant mutexes API in <libxml/threads.h>. The parts of the library checked for thread safety are:
XPath has been tested for threaded usage on non-modified document for example when using libxslt, but make 100% sure the documents are accessed read-only !
|
|
|
|
|