TThread.Create(False) not working correctly.
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Functions ThreadProc and TThread.Create (fcl/linux/thread.inc) need to be synchronized. ThreadProc can be (not must) called before clone call return. ThreadProc will call Execute which has still uninitialized FThreadID and IsMultiThread properties. Beside that, when FSuspended is True, Execute should be called only after Resume call. So, the first thing in ThreadProc should be waiting until TThread.Create finish.
Additional information:
Reporter: Michal Bakowski
EMail: ja at michbak dot com
Mantis conversion info:
- Mantis ID: 4159
- OS: Linux
- Version: 1.0.6
- Fixed in version: 1.9.1