/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="connection">Connection to return.</param> public static void GiveBack(SimulationIslandConnection connection) { if (SimulationIslandConnections == null) SimulationIslandConnections = new UnsafeResourcePool<SimulationIslandConnection>(); connection.CleanUp(); SimulationIslandConnections.GiveBack(connection); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="connection">Connection to return.</param> public static void GiveBack(SimulationIslandConnection connection) { connection.CleanUp(); SimulationIslandConnections.GiveBack(connection); }