On 09/19/2010 11:45 AM, Graeme Geldenhuys wrote:
If you understand the possible problems, it is rather a question of:
"Why did they take so long to deprecate the flaw". Imagine your
thread has locked a major resource, now you suspend that thread. A
instant deadlock occurs because that thread will never release that
resource.
I used threads very often and I never used "suspend" and friends for
synchronizing. I do use critical sectrions, events and messages. IMHO
this makes a lot more sense.
-Michael
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus