Am 14.10.2010 09:35, schrieb Michael Van Canneyt:


On Thu, 14 Oct 2010, Sven Barth wrote:

The problem with an own version of pthreads is that those threads will
be limited to Pascal code only, cause other (C based) libraries will
still use pthreads.

This is not a problem for pascal-only libs.


As long as you don't need to use non-pascal libraries, you are correct. But according to the Wine article it is already a problem if you use libc, because it only enables its thread safety routines if pthreads is detected... :(


An interesting lecture on this topic is in the wiki of Wine, cause
they had to implement their own threading implementation as well (the
old pthreads library wasn't capable enough for the needs of the
WinAPI). eYou can find the article here:
http://www.winehq.org/docs/winedev-guide/threading
(the interesting paragraph is "POSIX threading vs. kernel threading").

It makes you wonder how Andrew's programs would behave under wine :-)

Indeed ^^

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to