Ejemplo n.º 1
0
 def DisconnectAll(self):
     poolId = 0
     with self._lock_:
         poolId = self._PoolId_
     if (poolId != 0):
         return ccl.DisconnectAll(poolId)
     return True
Ejemplo n.º 2
0
 def ShutdownPool(self):
     poolId = 0
     ok = True
     with self._lock_:
         poolId = self._PoolId_
         self._PoolId_ = 0
     if (poolId != 0):
         ok = ccl.DisconnectAll(poolId)
         ok = ccl.DestroySocketPool(poolId)