-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUGFIX: change unsuitable atomic_int to atomic_flag #472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix seems valid to me. I wonder if we need to have a atomic_flag_test_and_set
on init, but that seems inline with the initial value set by atomic_init
...
One cosmetic remark:
Please, split in 2 commits: one for the lib one` for the app. have look to existing commit to see commit subjet prefix to use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much to say here. I think this will be good to go with @arnopo comments addressed.
Change atomic_int to atomic_flag to solve the error reported when compiling with clang. Signed-off-by: Yunfei Li <liyunfei33@huawei.com>
Change atomic_int to atomic_flag to solve the error reported when compiling with clang. Signed-off-by: Yunfei Li <liyunfei33@huawei.com>
updated as the above comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go.
This patch tries to fix issue#471