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

Add godoc comments indicating that a mutex is needed for use with goroutines #22

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

Conversation

skidder
Copy link

@skidder skidder commented May 5, 2016

No description provided.

@rakyll
Copy link
Owner

rakyll commented Jun 30, 2016

Could you rebase it? I cannot merge due to the conflict.

@skidder skidder force-pushed the mention-thread-safety-in-godoc branch from b8cc6e3 to 78a3d9b Compare July 12, 2016 23:25
@skidder
Copy link
Author

skidder commented Jul 12, 2016

@rakyll I've rebased my PR branch to incorporate more recent changes

// when it is no longer needed. Access to the magicmime
// database is not synchronized; the magicmime database file-descriptor
// is referenced through a global variable. Add mutex Lock/Unlock around
// the magicmime functions if using multiple goroutines.
Copy link

@ctrochalakis ctrochalakis Jan 15, 2018

Choose a reason for hiding this comment

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

Does that mean we should guard between calls to a specific Decoder's methods? Or between calls to magicmime.NewDecoder() calls? or both?

Choose a reason for hiding this comment

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

Pretty sure that it's only between calls to a specific Decoder.

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.

4 participants