On 15/12/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:


Does it mean that we'll need two different SDO distributions? one for
use inside Apache Httpd, another for use outside?

What happens if we init Libxml multiple times? does it crash? is it a
performance issue? does it break other components using Libxml in the
same process?

Is there a way to detect that Libxml is already initialized, instead of
a compiler option?


I've looked at the code, and it does have a simple check to make sure the
code is only executed once. However there's no locking around it, so a race
condition can occur if it is called on multiple threads.

So, if Tuscany is being used as a library within an environment like httpd
with PHP, where we know that xmlInitParser() will already have been called,
you may feel free to call it as often as you wish, and it will make no
difference.

This question is discussed quite a bit on the libxml2 list:
http://news.gmane.org/gmane.comp.gnome.lib.xml.general
--
Caroline

Reply via email to