Re: [xml] thread saftey and xmlXPathEvalExpression

2013-09-12 Thread Daniel Veillard
On Wed, Aug 28, 2013 at 07:26:36PM +0200, Oliver Friedrich wrote: > Hello. > I have the following multi thread related problem. > > main(){ > xmlInitParser(); > //validationstuff > xmlParserCtxtPtr globalContext = xmlSchemaValidCtxtGetParserCtxt(ctxt); > } > > threadFunction(){ > xPathObjectPtr f

[xml] thread saftey and xmlXPathEvalExpression

2013-08-28 Thread Oliver Friedrich
Hello. I have the following multi thread related problem. main(){ xmlInitParser(); //validationstuff xmlParserCtxtPtr globalContext = xmlSchemaValidCtxtGetParserCtxt(ctxt); } threadFunction(){ xPathObjectPtr foos = xmlXPathEvalExpression ("foo", globalContext); //read all the foos } (sorry I don