Add comment explanation

This commit is contained in:
Ben Adams 2015-10-03 11:10:25 -04:00 committed by Louis DeJardin
parent 05702e81e6
commit e107c47913
2 changed files with 8 additions and 0 deletions

View File

@ -196,6 +196,10 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
{
Extra[key] = feature;
// Altering only an individual bit of the long
// so need to make sure other concurrent changes are not overridden
// in a lock-free manner
long currentFeatureFlags;
long updatedFeatureFlags;
do

View File

@ -93,6 +93,10 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
{{
Extra[key] = feature;
// Altering only an individual bit of the long
// so need to make sure other concurrent changes are not overridden
// in a lock-free manner
long currentFeatureFlags;
long updatedFeatureFlags;
do