Re: [xml] Possible error reporting addition to the library



There are two more possible options:
3) If caller cares about error code let caller write an *application specific* error callback that stores the last error code on per-thread basis (using
   TLS or whatever). On LibXML side this means a new error reporting
   function that has all the necessary parameters (error code, etc.) and
   replacing all the current xmlError(..) calls with calls to new function.
This is a boring task but it's relatevly safe and easy for LibXML itself.

4) Write all the code to handle threads correctly by yourself (using TLS, for example). However, I would not volunteer to support such piece of code
   because it quickly becomes a nightmare (each OS has its own "features").

Aleksey






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