Re: [xml] Some things about xmlCharEncodingHandler



Oliver Stöneberg wrote:

Might this cause some problems, if you just change the callbacks while libxml2 might be in use? I am not sure how it is protected or sync'd internally. Because if somebody is using the handler while you change it might use the first callback, which still be the old one and then the second callback, which is already the new one. Would be a bad thing IMO.

While somebody is using it? Who is somebody? When your program loads libxml, its data belong to your program's address space. There can never be another who uses that. Any other process has its own address space and its own instance of libxml data.

Ciao,
Igor




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