互斥(体);
Finally, you can check the status of a mutex through a call to mutex_is_locked.
最后,可以通过调用mutex is locked检查互斥锁的状态。
来源:互联网摘选它还允许您原子地(atomically)解除互斥的锁定,并等待条件变量,而不会有干涉其他线程的可能。
来源:互联网摘选不使用互斥对象时,即使主线程在thread function()线程睡眠一秒钟期间内对myglobal加一,thread function()苏醒后也会覆盖主线程所加的值。
来源:互联网摘选详细介绍了在Linux环境下,特别是内核态下可能遇到的各种互斥场景,依据代码执行路径对其进行了分类。
来源:互联网摘选The theory of displaying bitmap and the method of creating mutex are also expounded.
阐述了有关位图的显示机理及互斥体的创建方法.
来源:互联网摘选有效地使用可以在多线程之间实现同步和互斥,以保证程序的正确的运行.
来源:互联网摘选对互斥对象解锁会立即发生,但等待条件mycond通常是一个阻塞操作,这意味着线程将睡眠,在它苏醒之前不会消耗CPU周期。
来源:互联网摘选For similar synchronization between the threads of different processes, use a mutex object.
对于不同进程之间的类似线程同步, 使用互斥对象.
来源:互联网摘选当与互斥一起使用时,pthreads条件变量可以在线程之间提供基于事件的同步机制,不过这是同步的。
来源:互联网摘选另外,您还可以使用“递归”类型的互斥量,这种互斥量允许对同一个互斥量锁定多次。
来源:互联网摘选Uncontested unlock operations return a locked mutex to the thread lock cache.
非争用的解锁操作将一个锁定的互斥锁返回给线程锁定缓存。
来源:互联网摘选A signal's mutex is automatically locked whenever any of the signal's methods are called.
调用信号的任何方法时,信号的互斥体都会自动加锁.
来源:互联网摘选Before it is put into the thread lock cache, the mutex is prelocked by the thread.
互斥锁在放入线程锁定缓存之前被线程预先锁定。
来源:互联网摘选锁定“一个互斥体意味着等待,直至该互斥体变为无主,然后令其被当前线程拥有。”
来源:互联网摘选The display thread must wait for the mutex to be clear before updating the display.
显示线程在更新显示之前必须等待清除互斥体.
来源:互联网摘选互斥对象将插入一道“内存关卡”,由它来确保对主存的写入按照线程锁定互斥对象的顺序进行。
来源:互联网摘选Next it releases the signal's mutex, before invoking the combiner to iterate through the slot list.
接着,它会在调用合并器遍历插槽链表之前,释放信号的互斥体.
来源:网络文摘精选英语网 · 双语娱乐资讯
英语网 · 双语新闻
英语网 · 双语新闻
英语网 · 双语娱乐资讯
英语网 · 双语娱乐资讯

英语网 · 英语口语