• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

EventSystem.cc

Go to the documentation of this file.
00001 /** @file
00002 
00003   A brief file description
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 /****************************************************************************
00025 
00026    EventSystem.cc --
00027 
00028 
00029 ****************************************************************************/
00030 
00031 #include "P_EventSystem.h"
00032 
00033 void
00034 ink_event_system_init(ModuleVersion v)
00035 {
00036   ink_release_assert(!checkModuleVersion(v, EVENT_SYSTEM_MODULE_VERSION));
00037   int config_max_iobuffer_size = DEFAULT_MAX_BUFFER_SIZE;
00038 
00039   REC_EstablishStaticConfigInt32(thread_freelist_size, "proxy.config.allocator.thread_freelist_size");
00040   REC_ReadConfigInteger(config_max_iobuffer_size, "proxy.config.io.max_buffer_size");
00041 
00042   max_iobuffer_size = buffer_size_to_index(config_max_iobuffer_size, DEFAULT_BUFFER_SIZES - 1);
00043   if (default_small_iobuffer_size > max_iobuffer_size)
00044     default_small_iobuffer_size = max_iobuffer_size;
00045   if (default_large_iobuffer_size > max_iobuffer_size)
00046     default_large_iobuffer_size = max_iobuffer_size;
00047   init_buffer_allocators();
00048 }

Generated by  doxygen 1.7.1