Unfortunately, it violates the single-threaded model for the UI: the Android UI toolkit is not thread-safe and must always be manipulated on the UI thread.
但不幸的是,上面的代码违背了UI线程的单线程模式:Android UItoolkit不是线程安全的,所以对UI的操作都应该在主ui线程中进行。
Dispatching events can follow two different models. One is called single-threaded dispatching model and the other multiple-threaded dispatching model.
事件分发遵循两种不同的模型。单线程分发模型和多线程分发模型。
Currently all the COM objects are only written to support the single threaded apartment model.
目前所有的COM对象只能写成支持单线程的公寓模型。
The COM threading model can be set to single-threaded apartment or multithreaded apartment.
COM线程模型可设置为单线程单元或多线程单元。
The COM threading model can be set to single-threaded apartment or multithreaded apartment.
COM线程模型可设置为单线程单元或多线程单元。
应用推荐