Skip to content
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

Doubts about lock/unlock operating range? #6

Open
daheige opened this issue Jun 19, 2021 · 0 comments
Open

Doubts about lock/unlock operating range? #6

daheige opened this issue Jun 19, 2021 · 0 comments

Comments

@daheige
Copy link
Contributor

daheige commented Jun 19, 2021

tw.mu.Lock()

Which block of logic is the lock/unlock operation here, is it the write to dst, or the entire block from 100 lines to 109 lines? For timeout.go#L114, which is the same for the lock and release locks here? If it is for data writing/reading, see if you use mu sync.Mutex here, can you use rw lock?

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

No branches or pull requests

1 participant