Re: [xml] processes and threading with xmlInitParser()



On Thu, Mar 31, 2005 at 02:16:01PM +0100, Peter Barrie wrote:
Using libxml2-2.6.9

  This is old.

I'm using multiple processes under QNX. Each process may have multiple
threads. All processes use dynamic linking to libxml2-2.6.9. What would
be best practice for using xmlInitParser() and xmlCleanupParser() in
this situation?  No code other than mine will make use of libxml. I've

  all xmlInitParser at the beginning before launching threads and never
call xmlCleanupParser()

looked through the archives, but the multiple process issue is not
discussed specifically. Maybe no different to the multiple thread
issue?

  Should be no different. libraries space are Copy On Write betweeen 
processes. They should not interfere, if they do, the system is
not POSIX compliant and would be terribly insecure.

Can I check the configuration issues. I expect I need to

./configure --with-threads  

Do I need to do anything else to work in a multiprocess, multithreaded
environment?

  no

Thanks for any help

Pete

***********************************************************************
This transmission contains information which may be confidential and  
which may also be privileged.  It is intended for the named addressee  
only.

  This condition is incompatible with this mailing list usage. We will
transmit informations to non-subscribers, get rid of it or unsubscribe
and post from a different email address !

Unless you are the named addressee, or authorised to receive it 
on behalf of the addressee you may not copy or use it, or disclose it 
to anyone else.  If you have received this transmission in error please 
contact the sender.  Thank you for your cooperation. 
***********************************************************************


Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]