示例#1
0
 internal void Push(thread thread)
 {
     if (isDisposed)
     {
         thread.Stop();
     }
     else
     {
         threads.Push(thread);
         if (isDisposed)
         {
             disposePool();
         }
     }
 }
示例#2
0
 public void Push(ref DbConnection connection)
 {
     pool.Push(connection);
     connection = null;
 }