[Expat-discuss] Is Expat library thread safe

Rich Salz rsalz@zolera.com
Fri Sep 7 06:47:02 2001


> Could someone please tell me whether Expat
> library is thread safe.
> I didn't see any synchronization mechanism anywhere
> and didn't get much chance to go through the code to see
> data/variable sharing.

Expat's model is that you create a "parser" object, and all the state is
maintained in that parser.  So the expat code itself is safe.

If you want to share parsers across threads you'll have to write your
own synchronization stuff.
	/r$

-- 
Zolera Systems, Your Key to Online Integrity
Securing Web services: XML, SOAP, Dig-sig, Encryption
http://www.zolera.com