Re: [xml] libxml2 and pthreads



Daniel Veillard wrote:
On Thu, Aug 19, 2004 at 12:57:31PM -0700, Ben Greear wrote:

  That would force existing threaded apps using libxml2 to change
their initialization code, basically an API/ABI break. Impossible at this
point, sorry !

Not really.  The default behaviour could have the current initialization code
initialize the locks with pthread-related methods.  But, if a distribution
wanted to have a pthread-less (but still potentially thread-safe) libxml,
then they can compile it w/out pthreads and patch any threaded applications
to use the new external lock initialization logic.


  There is an alternative, at least on Linux/gcc but Jakub never provided
the patch or information on how to really do so:

  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=115806

This is not available to non-redhat people it seems.

Ben

--
Ben Greear <greearb candelatech com>
Candela Technologies Inc  http://www.candelatech.com




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