参考文章:https://blog.csdn.net/yikai2009/article/details/8650221 1. 原子操作:原子操作指的是在执行过程中不会被别的代码所中断的操作.。分为 位 和 整型变量 两类原子操作。 typedef struct { volatile int cou Read More
posted @ 2019-07-27 20:31 靖意风 Views(10639) Comments(0) Diggs(0)
#include <pthread.h> pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER;int pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t Read More
posted @ 2019-07-27 11:00 靖意风 Views(857) Comments(0) Diggs(0)