Exemplo n.º 1
0
 /// <summary>
 /// Unregisters the specified resource pool.
 /// </summary>
 /// <param name="pool">The resource pool to unregister.</param>
 internal static void Unregister(ResourcePool pool)
 {
     lock (PoolsInternal)
       {
     PoolsInternal.Remove(pool);
       }
 }
Exemplo n.º 2
0
 //--------------------------------------------------------------
 /// <summary>
 /// Registers the specified resource pool.
 /// </summary>
 /// <param name="pool">The resource pool to register.</param>
 internal static void Register(ResourcePool pool)
 {
     lock (PoolsInternal)
       {
     PoolsInternal.Add(pool);
       }
 }