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

Castle.Core has made Castle.Core.Internal.Lock obsolete #565

Closed
generik0 opened this issue Nov 18, 2020 · 2 comments · Fixed by #576
Closed

Castle.Core has made Castle.Core.Internal.Lock obsolete #565

generik0 opened this issue Nov 18, 2020 · 2 comments · Fixed by #576
Milestone

Comments

@generik0
Copy link
Contributor

generik0 commented Nov 18, 2020

HI @jonorossi

Castle.Core has removed made Castle.Core.Internal.Lock obsolete. It is used in SimpleThreadSafeCollection and SimpleThreadSafeSet.
Recommends migration to System.Threading.ReaderWriterLockSlim that is also in net45++

Thoughts, should we migrate? Right now, the build will fail due to warning, if Castle.Core is updated.

EDIT: After pulling 4.4.1, Lock is actually removed, this change is required

@jonorossi
Copy link
Member

SimpleThreadSafeCollection should be changed to use a ReaderWriterLockSlim directly. We used to use the Lock class in Castle.Core because Silverlight doesn't have RWLS. There is no need for this abstraction anymore.

Castle.Core's SynchronizedDictionary (internal class) is an example of a class that no longer uses the Lock abstraction.

generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 25, 2020
@generik0
Copy link
Contributor Author

HI @jonorossi when you have time, please review PR

generik0 added a commit to generik0/Windsor that referenced this issue Nov 26, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 30, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Nov 30, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Dec 2, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Dec 2, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Dec 2, 2020
generik0 added a commit to generik0/Windsor that referenced this issue Dec 3, 2020
@jonorossi jonorossi linked a pull request Dec 4, 2020 that will close this issue
@jonorossi jonorossi added this to the vNext milestone Dec 4, 2020
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

Successfully merging a pull request may close this issue.

2 participants