![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
一个行走的民
业精于勤,荒于嬉,行成于思,毁于随。
展开
-
pthread_rwlock_t成员含义
记录一下以防忘记glibc-2.23/sysdeps/x86/bits/pthreadtypes.htypedef union{ struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr原创 2021-09-06 17:23:04 · 945 阅读 · 0 评论 -
C语言复杂指针声明应如何阅读
C语言所有复杂的指针声明,都是由各种声明嵌套构成的。如何解读复杂指针声明呢?右左法则是一个既著名又常用的方法。不过,右左法则其实并不是C标准里面的内容,它是从C标准的声明规定中归纳出来的方法。C标准的声明规则,是用来解决如何创建声明的,而右左法则是用来解决如何辩识一个声明的,两者可以说是相反的。右左法则的英文原文是这样说的: The right-left rule: Start转载 2016-05-20 09:56:07 · 246 阅读 · 0 评论