Branch: refs/heads/master
Home:   https://github.com/castleproject/Castle.Windsor

Commit: 3e535429d1a515614fe44a1ea6ceaadec0838c20
    
https://github.com/castleproject/Castle.Windsor/commit/3e535429d1a515614fe44a1ea6ceaadec0838c20
Author: Krzysztof Kozmic <[email protected]>
Date:   2010-12-10 (Fri, 10 Dec 2010)

Changed paths:
  M src/Castle.Windsor/Castle.Windsor.csproj
  A src/Castle.Windsor/Core/Internal/ThreadSafeFlag.cs
  M src/Castle.Windsor/MicroKernel/DefaultKernel.cs
  M src/Castle.Windsor/MicroKernel/Lifestyle/SingletonLifestyleManager.cs

Log Message:
-----------
- simplified SingletonLifestyleManager a bit. Removed volatile from the field 
definition. There's no reason why it should be volatile - all multithreaded 
access is already within a lock, and Dispose is now guaranteed to be invoked 
only once

- added check on the DefaultKernel to only ever Dispose handlers once. This 
lifts the need for multithreaded code in the handler's Dispose
- added ThreadSafeFlag which pretty much does what it says. It's used to 
perform lockless, thread safe "only once" operations.


-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-commits?hl=en.

Reply via email to