Moreover, it may be impossible to make a non-reentrant function thread-safe.
另外,或许不可能让某个不可重入的函数是线程安全的。
The wait function on the event object blocks the calling thread until its state is set to signaled state.
对事件对象调用的等待函数会阻塞调用线程,直到其状态被设置为有信号状态为止。
POSIX provides the mutex function to create critical sections that enforce exclusive access to an object (a piece of memory) by a single thread.
POSIX提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。
The table, function, and thread types are all references.
表、函数和线程类型都是引用。
Information contained in this output includes process, thread, and node number, as well as trace point Numbers, function names, trace record types and, in some cases, probe Numbers.
该输出中的信息包括进程、线程、节点号,以及跟踪点号、函数名、跟踪记录类型,在某些情况下还包括探测号。
When the synchronization object is used in one of the wait functions, the wait function blocks the calling thread until the state of the synchronized object is set to signaled.
当在一个等待函数中使用同步对象时,等待函数就会阻塞调用线程,直到同步对象的状态被设置为有信号为止。
This function suspends the calling thread until the semaphore has a non-zero count.
这个函数会挂起调用线程,直到这个信号量有一个非空计数为止。
This is the function that is invoked whenever a message is sent to the thread.
它就是每当消息被发送给线程时就会调用的函数。
This function exits a thread if the normal sequential execution hasn't finished.
如果正常的顺序执行尚未完成,这个函数将退出线程。
The kernel registers the process/thread with the associated device's select function and puts the process/thread to sleep.
内核向相关设备的选择函数注册这个进程 /线程,并让这个进程 / 线程睡眠。
If the calling thread has no ownership of this mutex, this function fails.
如果调用线程并不拥有这个互斥信号量,那么这个函数的执行将会失败。
That is, a block of code (function) that now doesn't have to be represented via thread state and registers and such.
也就是说,现在并不通过线程状态和寄存器表示代码块(函数)。
The only problem with this function is that when it periodically executes, it executes on the main thread and thus blocks any interactions from the user during that time.
此函数的惟一缺陷是:它在主线程上执行,因此,在此期间,它会阻塞与用户的任何交互。
The HTML pages within an extension often need to communicate. Because all of an extension's pages execute in same process on the same thread, the pages can make direct function calls to each other.
扩展的HTML页面间也需要通信,因为扩展下面的所有HTML页面都在一个进程下工作,可以互相调用函数。
Parameter passing to the thread function.
传递给线程函数的参数。
This usually means copying the arguments over from the spe local store, running the respective library function in the user thread, and continuing by calling the ioctl again.
这通常意味着从SPE的本地存储中拷贝参数,在用户线程中运行各自的库函数,并通过再次调用ioctl继续执行。
The Win32 SleepEx function suspends the current thread until one of the following occurs.
Win32sleepex函数挂起当前线程,直到下面事件之一发生。
As the name suggests, the _beginthread function creates a thread that executes the routine, where the pointer to that routine is specified as the first argument.
顾名思义,_ beginthread函数可以创建一个执行例程的线程,其中将指向该例程的指针作为第一个参数。
The time period for the Win32 Sleep function is in milliseconds and can even be INFINITE, in which case the thread will never resume.
用于Win32 sleep函数的时间段的单位是毫秒,可以是INFINITE,在这种情况下线程将永远不会再重新开始。
There are eight fundamental types (of values) in Lua: nil, Boolean, number, string, function, thread, table, and userdata.
Lua中的基本类型(值)有8种:nil,布尔型,数字,字符串,函数,线程,表以及用户数据。
In joinable state, another thread can synchronize on the thread's termination and recover its termination code using the function pthread_join .
在可连接状态中,另一个线程可以同步这个线程的终止,使用函数pthread_join来重新获得其终止代码。
This blocks the thread until the agent has executed the function that was sent to it.
这将阻止线程,直到agent执行了发送给它的函数。
For the function in Listing 2, extract the data property of the event, as this is the actual data sent by the thread, and pass it to another function for updating the UI.
对于清单2中的这个函数,提取event的data属性,因为这是被线程发送的实际数据,然后将它发送给另一个函数来更新ui。
Instead of collecting all the output and processing it on a single thread, the final function called is passed to each thread via the ForAll extension method.
该方法并不需要实现收集到所有的输出,然后在单一的线程中处理,而是将最终调用的函数通过ForAll扩展传递到每个线程中。
This data is then sent back to the parent thread by using the postMessage function.
该数据随后会被通过postMessage 函数发送回母线程。
Since the thread scheduler really amounts to instructions to "do a, then do B, then do c, etc." it was not difficult to create an entirely parallel case in a main function.
因为线程调度程序真的等同于“执行a,接着执行b,然后执行c,等等”的指令,所以要在主函数中创建一个完全并行的情况也不困难。
The lock function main thread gets the result from the child thread.
lock函数主线程从子线程获得结果。
The lock function main thread gets the result from the child thread.
lock函数主线程从子线程获得结果。
应用推荐