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



On Thu, Oct 25, 2007 at 12:01:17PM +0530, Senthil Nathan wrote:
So, this api xmlMutexLock, locks the whole tree??
And, if there are multiple trees, how do we specify which tree to be locked.

Could you please give more information.

  there is no locking of tree support in libxml2.
There are lock support. They are not used for the trees but other structure.
You will have to design and implement the locking if you want 2 threads
to concurrently access and modify the same tree.

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]