Skip to content

读写锁代码错误 #11

Description

@GoogleCodeExporter
读写锁代码一章中,读写锁的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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions