File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,21 +7,21 @@ public sealed class ConcurrentQueueObjectPool<T> : TrimmableObjectPoolBase<T>
77 where T : class
88 {
99
10- public ConcurrentQueueObjectPool ( Func < T > factory , Action < T > recycler , int capacity = DEFAULT_CAPACITY )
11- : base ( factory , recycler , capacity )
12- {
13- Pool = new ConcurrentQueue < T > ( ) ;
14- }
10+ public ConcurrentQueueObjectPool ( Func < T > factory , Action < T > recycler , int capacity = DEFAULT_CAPACITY )
11+ : base ( factory , recycler , capacity )
12+ {
13+ Pool = new ConcurrentQueue < T > ( ) ;
14+ }
1515
16- public ConcurrentQueueObjectPool ( Func < T > factory , int capacity = DEFAULT_CAPACITY )
17- : this ( factory , null , capacity )
18- {
19-
20- }
16+ public ConcurrentQueueObjectPool ( Func < T > factory , int capacity = DEFAULT_CAPACITY )
17+ : this ( factory , null , capacity )
18+ {
19+
20+ }
2121
22- ConcurrentQueue < T > Pool ;
22+ ConcurrentQueue < T > Pool ;
2323
24- public override int Count => Pool ? . Count ?? 0 ;
24+ public override int Count => Pool ? . Count ?? 0 ;
2525
2626 // For ConcurrentQueue disable using the Pocket. It's fast enough as it is...
2727 protected override bool SaveToPocket ( T item )
You can’t perform that action at this time.
0 commit comments