文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>pthread_cond_wait will relock the mutex

pthread_cond_wait will relock the mutex

时间:2011-05-05  来源:qsort

Quoting APUE2: 

The mutex passed to pthread_cond_wait protects the condition. The caller passes it locked to the function, which then atomically places the calling thread on the list of threads waiting for the condition and unlocks the mutex. This closes the window between the time that the condition is checked and the time that the thread goes to sleep waiting for the condition to change, so that the thread doesn't miss a change in the condition. When pthread_cond_wait returns, the mutex is again locked.

相关阅读 更多 +
排行榜 更多 +
血债血偿2游戏2025最新版下载

血债血偿2游戏2025最新版下载

飞行射击 下载
真人街机捕鱼高爆版下载

真人街机捕鱼高爆版下载

休闲益智 下载
龟速网络

龟速网络

游戏工具 下载