Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Issue #17: Thread safety issue on Kernel.Inject
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm assuming it's okay for the planner to be called more than once? If two threads hit the lock, thread 1 will wait and thread 2 will call GetPlan. Once thread 2 is finished, thread 1 will also call GetPlan.