From: Ross Bamford Date: 2006-10-12T17:37:25+09:00 Subject: Re: xml/libxml thread safety On Thu, 2006-10-12 at 01:58 +0900, Mage wrote: > my simple question is that is libxml thread-safe? I would like to use it > in production environment. (I assume you mean libxml-ruby, rather than libxml itself?) The simple answer is probably not. We do have an open bug[1] regarding cross-thread synchronisation, and though I've been unable to reproduce it so far, I take that to mean it's probably platform/configure/compiler specific. Most of the other open bugs pertain to pointer handling, and have the potential to get 'interesting' in a multi-threaded program. I'm working on fixing most of this and implementing open feature requests for 0.4.0, but currently I'm short on free time and apparently kind of on my own on the project. I guess I might be able to give a more positive answer to the same question early next year... Meanwhile, you might want to check out ruby-xml-smart: http://raa.ruby-lang.org/project/ruby-xml-smart/ -- [1]: http://rubyforge.org/tracker/index.php?func=detail&aid=5734&group_id=494&atid=1971 Ross Bamford - rosco@roscopeco.REMOVE.co.uk