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

Convert LifetimeManagers to use Task<object> instead of Monitor #3

Open
ENikS opened this issue May 9, 2019 · 0 comments
Open

Convert LifetimeManagers to use Task<object> instead of Monitor #3

ENikS opened this issue May 9, 2019 · 0 comments
Assignees

Comments

@ENikS
Copy link
Contributor

ENikS commented May 9, 2019

Description

Current implementation uses Monitor for internal synchronization but native Task is significantly superior and allows better optimization.

Problem

Monitor allows simple scenarios with multithreaded access but fails in more advanced cases. It also does not allow proper async/await implementation and creates performance overhead

Solution

Lifetime managers could be converted to use Task as internal medium for storage and synchronization.

Impact

TBD.

@ENikS ENikS self-assigned this May 9, 2019
@ENikS ENikS changed the title Convert LifetimeManagers to use Task<object> as synchronization mechanizm Convert LifetimeManagers to use Task<object> instead of Monitor May 9, 2019
@ENikS ENikS transferred this issue from unitycontainer/abstractions Jun 16, 2019
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

1 participant