linux系统编程 进程间互斥锁
1 /* 2 头文件:#include<pthread.h> 3 4 获取定义互斥锁的属性: 5 int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict attr,int *restrict pshared); 6 7 设置互斥锁的属性: 8 int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr,int p