Skip to content

Explain test case, rename anchor const for readability #45

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrysn
Copy link

@chrysn chrysn commented Jan 13, 2022

The rename is primarily because I didn't get what the constant on the first read (and it really gets to you when you review code and find something that's obviously there for a purpose but it's also obviously not actually doing anything).

The comment is added to help readers who are led astray by the earlier warnings to not let the user pick the produced lifetime of a CS (here it's really controlled by the consumer) and miss that the mutex itself is shortlived.

Copy link

@YuhanLiin YuhanLiin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It is quite a confusingly placed test case. Perhaps it would be useful to also include a link to #6 in the comment, which is what the old GH_6 name obliquely referred to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants