Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Implement non-blocking thread safety in injector and dependency solver #29

Open
ghost opened this issue Sep 21, 2013 · 0 comments
Open
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Sep 21, 2013

We can use graph cloning to implement the dependency solver safety, with an atomic reference and compareAndSet().

Similar procedures can be used to do safe inserts into the provider cache. MemoizingProvider is already thread safe, and walking a graph is safe because any new nodes won't affect something in the process of being instantiated.

*Originally reported by mludwig on BitBucket

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

0 participants