[fpc-devel] CSuspendThread/CResumeThread
Michael Schnell
mschnell at lumino.de
Wed Nov 8 10:05:18 CET 2006
Jonas Maebe wrote:
>
> Does anyone see a problem with the following
> CSuspendThread/CResumeThread implementations?
>
1) This of course is the Linux version. Are the other implementation
already in place so that the result is platform independent ?
2) In Linux we have the old ("Linux thread" -> each thread is a process)
and the new Posix compatible "Kernel-Thread" implementation (as of
Kernel 2.6, a Linux process can have multiple threads). I don't know
if/how TThread can select which kind of threads are created. AFAIK,
using the standard thread library, Kilix automatically uses the new
threads with Kernel 2.6, while still using the old ones with Kernel 2.4.
As I feel that using the new Kernel-Thread way is highly recommended, it
should be granted that TThread uses same (when running in 2.6) and that
the "suspend" method is workable with both.
If I remember correctly, there is a signal handler per process and not
per thread, so this _might_ be a problem.
-Michael
More information about the fpc-devel
mailing list