For some reason on linux at least the suspended property is no always
set correctly, one can suspend a thread by creating a method like
"TrySuspend" and set a variable "FSuspend" when the execute is run
check for FSuspend then set it to false and call Suspend. I tried
overriding the Suspend method and comparing GetCurrentThreadID to
ThreadID to know if i should signal or do it but i am unable to do the
override for some reason ... so i made the TrySuspend which works just
fine but the Suspended property doesn't always reflect the real state.
Because the Suspended property is not always set correctly you do not
know when resume can be called or WaitFor, if you do a WaitFor on a
suspended thread your app is frozen ...
Having a proper status would help a lot :)
Razvan
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives