代码改变世界

[置顶]有关POSIX线程的函数

2016-11-14 18:55 by 沫完待续, 345 阅读, 0 推荐, 收藏,
摘要:(1)创建线程函数: pthread_create(); (2)阻塞等待线程结束并回收资源函数: pthread_join(); (3)线程退出函数:pthread_exit(); (4)线程互斥锁: 初始化 pthread_mutex_init(); 上锁 pthread_mutex_lock() 阅读全文