[fpc-devel]promised tthread patch

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sat Nov 15 23:42:48 CET 2003


On Sat, 15 Nov 2003, KJK::Hyperion wrote:

> At 12.27 15/11/2003, you wrote:
> >All you need to do is send the STOP signal to the thread.
> 
> This is a common misunderstanding. I quote from IEEE 1003.1:
> 
> "[...]
> 
> Note that pthread_kill() only causes the signal to be handled in the 
> context of the given thread; the signal action (termination or stopping) 
> affects the process as a whole.
> 
> [...]" 

Strange. How do you explain that Kylix uses it ? I've used threads in Kylix,
and they definitely work with suspend... Probably because for linux, each
thread is a different process anyway ? (at least till the 2.4 kernels)

Michael.




More information about the fpc-devel mailing list