10000 [API] Ensure one instantiation of GetChocolatey at a time · Issue #1400 · chocolatey/choco · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[API] Ensure one instantiation of GetChocolatey at a time #1400

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

Closed
ferventcoder opened this issue Sep 14, 2017 · 0 comments
Closed

[API] Ensure one instantiation of GetChocolatey at a time #1400

ferventcoder opened this issue Sep 14, 2017 · 0 comments

Comments

@ferventcoder
Copy link
Member
ferventcoder commented Sep 14, 2017

There is an issue when accessing the Chocolatey API, in that you could have multiple threads creating an instance of GetChocolatey at the same time and confusing some of the setup. Instead of multiple instances, there should be a singular instance of GetChocolatey that is used and it should be protected with a mutex. Only allow one instantiation at a time.

@ferventcoder ferventcoder added this to the 0.10.9 milestone Sep 14, 2017
@ferventcoder ferventcoder self-assigned this Sep 14, 2017
ferventcoder added a commit that referenced this issue Sep 14, 2017
Surround `Lets.GetChocolatey` with a mutex to ensure only one instance
of `GetChocolatey` is created. There was an issue when accessing the
Chocolatey API, in that you could have multiple threads creating an
instance of `GetChocolatey` at the same time and confusing some of the
setup, causing things to fail. Instead of multiple instances, there
should be a singular instance of `GetChocolatey` .
ferventcoder added a commit that referenced this issue Sep 14, 2017
* stable:
  (version) 0.10.9-beta
  (GH-1400) API - Ensure one instance of GetChocolatey
  (GH-1399) uninstall - keep stored pkg information
  (maint) formatting/wording
  (GH-1398) Upgrade: Ignore unfound option
  (GH-1398) Use feature for ignore unfound pkgs
  (GH-1398) fix: specs
  (GH-1040) use lower case for uninstall / log more
  (GH-1398) outdated: ignore unfound
@ferventcoder ferventcoder reopened this Sep 15, 2017
@ferventcoder ferventcoder changed the title [API] Ensure only a single instance of GetChocolatey [API] Ensure one instantiation of GetChocolatey at a time Sep 15, 2017
ferventcoder added a commit that referenced this issue Jan 23, 2018
When creating GetChocolatey, ensure that it is surrounded by a Mutex to
ensure one creation at a time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0