TThread: Document that WaitFor calls CheckSynchronize
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When debugging a problem with a thread related test together with Florian we found out that the test sometimes fails, due to TThread.WaitFor calling CheckSynchronize. It's totally reasonable that the method does this, namely to avoid a deadlock should a Synchronize call be blocking the thread's ability to terminate, but at this specific moment neither Florian nor I had thought about that. Other user's might have similar problems, so it would be best to document that TThread.WaitFor calls CheckSynchronize (and not only once if necessary) and why.
Mantis conversion info:
- Mantis ID: 37909
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 1767 (#b649273e)
- Target version: 3.2.2