Re: [xml] Locking and unlocking a part of the xml tree



On Wed, Oct 24, 2007 at 09:10:19PM +0530, Senthil Nathan wrote:

   Hi All,

   I  was  reading through the api's for locking the xml tree and checked
   that,



   xmlMutexLock() is used to lock a libxml2 token.

   xmlMutexUnlock() is used to unlock a libxml2 token.

   xmlNewMutex()  is  used  to allocate a libxml2 token struct for use in
   synchronizing access to data.



   Would  like  to  know, is there a way to lock and unlock a node in the
   xmlDocPtr.

   Or anyother means to do this?

  No. There is no locking in place in libxml2 for shared trees. One tree
per thread or you manage your own locking.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
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]