[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] XPath supposed to be thread safe with global, read-only contexts?
- From: Daniel Veillard <veillard redhat com>
- To: Stephan A Suerken <absurd schlund de>
- Cc: xml gnome org
- Subject: Re: [xml] XPath supposed to be thread safe with global, read-only contexts?
- Date: Thu, 18 Dec 2003 12:14:26 -0500
On Thu, Dec 18, 2003 at 06:04:40PM +0100, Stephan A Suerken wrote:
> Hi,
>
> 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
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]