[fpc-devel]promised tthread patch

KJK::Hyperion noog at libero.it
Sat Nov 15 04:52:18 CET 2003


At 22.10 14/11/2003, you wrote:
>Suspending at any arbitrary point as the semantics of .suspend() are, is 
>afaik impossible

not arbitrary. The rules are roughly the same as those for signaling 
(SuspendThread, in Windows, is implemented with a kernel-mode signal, like 
most system calls targeting threads). The only problem I see is the 
interaction with waits - but, on the other hand, EINTR has been banned from 
POSIX threads as cumbersome and of limited usefulness, and all POSIX 
threading interfaces restart interrupted waits automatically

>(and besides -- not a good idea either).

true. A crude and rude interface. But not supporting it at all? 





More information about the fpc-devel mailing list