static void Init() { if (!inited) { lock (_pool) { if (!inited) { for (int i = 0; i < capacity; i++) { var item = new StoreProcessor(i); _pool.Add(i, item); } inited = true; } } } }