Re: [xml] XPath supposed to be thread safe with global, read-only contexts?

On Thu, Dec 18, 2003 at 06:04:40PM +0100, Stephan A Suerken wrote:

we have problems evaluating XPath expressions in a multi-threaded
environment - i.e.:

We have a (multi-thread-environment-)global read only document
(xmlDoc) and associated global context (xmlXPathContext). Calling
xmlXPathEvalExpression() with that context ist _not_ thread safe (I
have so far boiled it down to the internal xmlXPathEvalExpr).

  the document is read-only it can be shared.
but each thread need to have it own xmlXPathContext which is read/write !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]