As such, the main thread is also sometimes called the UI thread.
因此,主线程有时也被叫做UI线程。
If no message is found, the main thread sleeps for 10 seconds.
如果未找到任何消息,主线程休眠10秒钟。
The main thread writes bytes read from the channel into the pipe.
主线程把从通道读取的数据写到管道中。
This blocks the main thread but executes the code on another thread.
这阻塞了主线程但是在另一个线程上执行代码。
All of these callbacks happen on the main thread of the application.
这些回调全部发生在应用程序的主线程上。
JNI context for the main thread of the app.
应用程序主线程用JNI环境。
UI must always be updated from the main thread.
用户界面必须从主线程更新。
When only the main thread exists, no lock operations are needed.
只有一个主线程的时候,不需要锁操作。
Now the result of the request must be made available to the main thread.
现在,请求的结果必须在主线程中可用。
When the worker finishes its work, it will send a message back to the main thread.
当此worker完成其作业后,它会向主线程发送回一个消息。
This transforms the main thread of the calling process into the control dispatcher.
这将把调用进程的主线程转换为控制分派器。
The inner conflict of psyche is the main thread to know the meaning of this poem.
人格的内在冲突是了解这首诗的主要线索。
A main thread will listen to the buffered queue and will service the requests it receives.
主线程会侦听缓冲队列,并服务其接收的请求。
This is the function that is called whenever the worker sends data back to the main thread.
这个函数将在 worker向主线程返回数据时被调用。
Let's say you have a main thread that creates three new threads: threads "a", "b", and "c".
假设主线程将创建三个新线程:线程a、线程b和线程c。
Any long running operation that operates on the main thread will cause an application to freeze up.
任何在主线程上运行的这类操作都会导致应用程序冻结。
It's the main thread that is implicitly created on process startup and executes the main method.
它是启动过程中隐式创建的主线程,执行main方法。
That data is also available to the main thread by accessing the data property of the message it receives.
主线程也可以通过访问它接收到的消息的data属性来访问该数据。
Without the communications between main thread and worker thread, CPU would be locked for a long time.
若没有主线程与辅助线程的通信,CPU将被阻塞很长一段时间。
It takes semantics as a main thread to discuss the expression of alternate category in modern Chinese.
全文以语义为纲,探讨现代汉语交替范畴的表达。
You need to do some thread safety work and make sure that UI modifying code gets sent to the main thread.
你需要做一些线程安全工作,确保UI修改代码被发送到主线程。
When the SPU needs to do any standard library calls like printf or exit, it has to call back to the main thread.
当SPU需要执行任何标准的库调用时,例如 printf或exit,它都需要回调主线程。
Because the main thread is solely responsible for multiplexing between all clients, we cannot afford to allow it to block.
因为主线程单独负责所有客户机间的多路复用,因此我们不能让它阻塞。
After the second pthread_create call, both the main thread and thread "b" can assume that thread "a" exists (or has stopped).
第二个pthread_create调用后,主线程和线程b都可以假定线程a存在(或已停止)。
Industrial scientific research units are now managing the costs by taking the contracts as the main thread of management.
目前科研单位都以合同为主要管理线索,进行成本管理。
Background tasks will use the DataFlowStream to stream result tweets back to the main thread that reads them from the stream.
后台任务将使用DataFlowStream来将结果tweets流式传输回主线程,该主线程从数据流中读取它们。
When an SPU thread gets created, the library will create a new thread that manages the SPU context asynchronous to the main thread.
在创建一个SPU线程时,这个库就创建一个新线程,它负责管理与主线程异步的spu上下文。
When you finish processing the data in the Worker script, you invoke the postMessage function to send data back to the main thread.
当您处理完Worker脚本中的数据时,调用postMessage函数将数据返回主线程。
However, immediately after the second create call returns, the main thread can't assume which thread (a or b) will actually start running first.
然而,就在第二个create调用返回后,主线程无法假定是哪一个线程(a或b)会首先开始运行。
Boolean that specifies whether the current thread blocks until after the specified selector is performed on the receiver on the main thread.
一个布尔值,指定是否阻塞当前线程直到指定选择器在主线程中执行完毕。
应用推荐