Delphi 匿名函数的几个实际应用(三)

Thread Synchronization with the VCL  VCL多线程同步

 

In multi-threaded applications that need to update the user interface, you
cannot access to properties of visual components (or in memory-objects)
that are part of the global thread without a synchronization mechanism.

 

The VCL, in fact, in not thread-safe (as is true for most user-interface libraries).
Two threads accessing an object at the same time could compromise its
state.

 

在一个多线程的需要更新用户界面的应用程序中,如果没有同步机制的话,你将不能访问是全局线程的一部分的可视组件的属性(或在内存的对象)。

原文地址:https://www.cnblogs.com/luckForever/p/7254696.html