angusj1 / spexamples

Automatically exported from code.google.com/p/spexamples
1 stars 0 forks source link

读写锁代码错误 #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
读写锁代码一章中,读写锁的unlock函数中,两个地方的读写��
�状态改变应该用赋值语
句不该用==

thiz->mode == RW_LOCKER_NONE;

这两个地方都用的是逻辑比较,应该是用赋值表示状态改变

thiz->mode = RW_LOCKER_NONE;

Original issue reported on code.google.com by pocke...@gmail.com on 13 May 2010 at 6:57

GoogleCodeExporter commented 9 years ago
代码已经修改,非常感谢。

Original comment by xianji...@gmail.com on 24 May 2010 at 1:29