摘要: 锁定互斥锁 使用 pthread_mutex_lock(3C) 可以锁定 mutex 所指向的互斥锁。 pthread_mutex_lock 语法 int pthread_mutex_lock(pthread_mutex_t *mutex); #include <pthread.h>pthread_mutex_t mutex;int ret;ret = pthread_ mutex_lock(&m... 阅读全文
posted @ 2011-08-19 11:52 balenofly 阅读(19538) 评论(0) 推荐(0) 编辑