C
C A D
Unregistered / Unconfirmed
GUEST, unregistred user!
TThread.Execute 在 delphi的帮助中有:
Note:
Do not use the properties and methods of other objects directly in the Execute method of a thread.
Instead,separate the use of other objects into a separate procedure call,
and call that procedure by passing it as a parameter to the Synchronize method
不太理解.
这个'a separate procedure' 可否是 mythread对象的过程,?如果可以,那直接在Execute中调用该过程
是不是已表明它与mythread同步(还需调用Synchronize(该过程))?
请大侠指点迷津
Note:
Do not use the properties and methods of other objects directly in the Execute method of a thread.
Instead,separate the use of other objects into a separate procedure call,
and call that procedure by passing it as a parameter to the Synchronize method
不太理解.
这个'a separate procedure' 可否是 mythread对象的过程,?如果可以,那直接在Execute中调用该过程
是不是已表明它与mythread同步(还需调用Synchronize(该过程))?
请大侠指点迷津