[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is expat thread safe?
- From: James Clark <email@example.com>
- To: Kent Archie <firstname.lastname@example.org>, xml-dev <email@example.com>
- Date: Wed, 27 Jun 2001 09:16:43 +0700
> I'm using expat to handle some XML work I am doing and
> at my code review, people asked about the therad safety of expat.
> I looked around at this groups archives and other web resources
> and didn't see a solid answer.
> My server process is creating a separate parser instance for each thread
> so I expect that it is OK.
If you use a separate parser instance for each thread, then you're safe,
provided that you are usind a thread-safe malloc.