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

inject support concurrent-safe? #12

Closed
achun opened this issue Jan 15, 2014 · 2 comments
Closed

inject support concurrent-safe? #12

achun opened this issue Jan 15, 2014 · 2 comments

Comments

@achun
Copy link

achun commented Jan 15, 2014

Maps are not safe for concurrent use.
page at: http://blog.golang.org/go-maps-in-action#TOC_6.

inject support concurrent-safe?

@codegangsta
Copy link
Owner

inject is currently not concurrent-safe. This isn't too bad for a project like martini but I can see it being dangerous for other implementations. We certainly can throw a mutex on. Although adding things like providers (#10) may add complications and possible deadlock scenarios

@codegangsta
Copy link
Owner

closing as the question has been answered

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

2 participants