Re: [xml] win32 thread safety patch
- From: "Robert Collins" <robert collins itdomain com au>
- To: "Serguei Narojnyi" <serguein opencola com>, <xml gnome org>
- Subject: Re: [xml] win32 thread safety patch
- Date: Tue, 8 Jan 2002 09:51:02 +1100
===
----- Original Message -----
From: "Serguei Narojnyi" <serguein opencola com>
To: <xml gnome org>
Sent: Tuesday, January 08, 2002 9:48 AM
Subject: RE: [xml] win32 thread safety patch
Has anyone tried linking against pthreads directly?
http://sources.redhat.com/pthreads-win32/
is a maintained port of pthreads to win32, IMO it would keep the xml
codebase cleaner to use this, than a direct win32 implementation.
while this would work, it wouldn't be as efficient, for example
compare
amount of code that implements reentrant mutexes on win32 with
construct
that is written for pthreads (and which would have to be fully
executed if
pthread emulation would be chosen). threading part of libxml is
sufficiently
small and separated to be implemented natively without any emulation,
imo
anyway.
If you examine
http://world.std.com/~jmhart/opensource.htm
(A link from the pthread-win32 page) an independent review was conducted
and found the performance to be approximately equal to that of pure
WIN32 threading calls.
Rob.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]