def DisconnectAll(self): poolId = 0 with self._lock_: poolId = self._PoolId_ if (poolId != 0): return ccl.DisconnectAll(poolId) return True
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)