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

Mutex access to font library #194

Merged
merged 2 commits into from Mar 29, 2019
Merged

Mutex access to font library #194

merged 2 commits into from Mar 29, 2019

Conversation

andydotxyz
Copy link
Member

Possible fix for #189

@paulhovey
Copy link
Contributor

Looks good to me!

I've often wondered if it's better to store a sync.RWMutex object or a pointer to the object. Normally structs are passed around as pointers, but I don't know if there's any benefit to mutexes?

@andydotxyz
Copy link
Member Author

Thanks @paulhovey that is a good point. I looked at it again and decided to embed the lock instead. Makes it more clearly a key part of this type.

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.

None yet

2 participants