[Expat-discuss] Expat lib and Pthreads

Mikhail Strizhov strizhov at netsec.colostate.edu
Fri Jan 14 00:09:17 CET 2011


Greetings list,

I have fully working parsing module and I need to use this module with 
two threads (C pthread library) to parse different xml documents 
simultaneously.
Both threads will launch:

XML_Parser parser = XML_ParserCreate(NULL);
XML_SetElementHandler(parser, _start_hndl, _end_hndl);
XML_SetCharacterDataHandler(parser,_char_hndl );

Will I have inconsistency if both threads will use _start_hndl() and 
_end_hndl() handler functions?

Thanks!

-- 
Sincerely,
Mikhail Strizhov
Email: strizhov at netsec.colostate.edu <mailto:strizhov at netsec.colostate.edu>


More information about the Expat-discuss mailing list