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

doc: define how sync interacts with memory model #7948

Open
dvyukov opened this Issue May 7, 2014 · 2 comments

Comments

Projects
None yet
4 participants
@dvyukov
Member

dvyukov commented May 7, 2014

This is related to issue #5045.

We also need to define how primitives in sync package interact with memory model. E.g.
wg.Add happens-before wg.Done, once.Do function execution happens-before any of once.Do
returns, etc.
@ianlancetaylor

This comment has been minimized.

Contributor

ianlancetaylor commented May 7, 2014

Comment 1:

It would be nice if we could document in the sync package that WaitGroup.Add works like
Mutex.Lock and WaitGroup.Wait works like Mutex.Unlock.  Then we only have to change the
sync doc, not the memory model doc.
@glasser

This comment has been minimized.

Contributor

glasser commented Sep 23, 2016

Note that Once is currently documented. WaitGroup still isn't.

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