public void TakeEmpty_Linked() { for (int i = 0; i < OpsPerInvoke; i++) { SimplifiedPool <object> .TryGet(); } }
public void PushPopOnce_Linked() { for (int i = 0; i < OpsPerInvoke; i++) { SimplifiedPool <object> .TryPut(s_TestObject); SimplifiedPool <object> .TryGet(); } }
public void PushPopCapacity_Linked() { for (int i = 0; i < OpsPerInvoke / Capacity; i++) { for (int j = 0; j < Capacity; j++) { SimplifiedPool <object> .TryPut(s_TestObject); } for (int j = 0; j < Capacity; j++) { SimplifiedPool <object> .TryGet(); } } }
public void Reset() { while (Util <object> .TryGet(_queue) != null) { } while (Util <object> .TryGet(_stack) != null) { } while (Util <object> .TryGet(_array) != null) { } while (SimplifiedPool <object> .TryGet() != null) { } }