On Fri, Oct 15, 2010 at 11:03 AM, <jellyfish.softw...@gmx.net> wrote: > On Fri, 15 Oct 2010 17:24:03 +0200, Sven Barth > <pascaldra...@googlemail.com> wrote: > >> The problem isn't the pthreads library. The problem is the POSIX threading >> specification of which pthreads is an implementation (look at the comment in >> CSuspendThread again). > > Actually, it's not even a problem. Externally suspending a thread is > inherently unsafe and should not be done at all. > > If you'd do *that* would be the problem (yes, I know that there are > possible use cases, but these are negligible). >
Externally suspending a thread *IS* absolutely unsafe. But the notion of suspending an ENGINE at runtime externally is totally expected. The thread itself MUST put itself in a suspended state. +1 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal