コード例 #1
0
ファイル: Node.cs プロジェクト: RobinHerbots/FluidCaching
 private void RegisterWithLifespanManager()
 {
     if (Bag == null)
     {
         lock (this)
         {
             if (Bag == null)
             {
                 // if node.AgeBag==null then the object is not currently managed by LifespanMgr so add it
                 Next = manager.AddToHead(this);
             }
         }
     }
 }
コード例 #2
0
ファイル: Node.cs プロジェクト: sureshsubudhi/FluidCaching
 private void RegisterWithLifespanManager()
 {
     if (Bag == null)
     {
         lock (syncObject)
         {
             if (Bag == null)
             {
                 // if Bag is null, then the object is not currently managed by the life span manager
                 Next = manager.AddToHead(this);
             }
         }
     }
 }