Пример #1
0
        /// <summary>
        /// Constructor of factory.
        ///
        /// </summary>
        public DefaultRSFactory()
        {
            for (int i = 0; i < POOL_SIZE; i++)
            {
                _rs_pool[i] = _rs_creator.create_new();
            }

            _head_pos = POOL_SIZE - 1;
        }