摘要:
与互斥量一样使应用程序在获取读写锁时避免陷入永久阻塞状态。这两个函数是#include #include int pthread_rwlock_timedrdlock(pthread_rwlock_t *restrict rwlock, ... 阅读全文
posted @ 2015-06-23 18:28
南哥的天下
阅读(957)
评论(0)
推荐(0)
摘要:
函数pthread_mutex_timedlock当线程试图获取一个已加锁的互斥变量时,pthread_mutex_timedlock互斥量原语允许绑定线程阻塞的时间。pthread_mutex_timedlock函数与pthread_mutex_lock是基本等价的,但是在达到超时时间值时,pth... 阅读全文
posted @ 2015-06-23 17:16
南哥的天下
阅读(9208)
评论(0)
推荐(0)
浙公网安备 33010602011771号