base_defs_conf.hh

Go to the documentation of this file.
00001 /*
00008  * LEGAL:   COPYRIGHT (C) 2004 JIM E. BROOKS
00009  *          THIS SOURCE CODE IS RELEASED UNDER THE TERMS
00010  *          OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2).
00011  *****************************************************************************/
00012 
00013 // base_defs.hh has generic defs
00014 // base_defs_conf.hh has configuration defs
00015 
00016 #ifndef BASE_DEFS_CONF_HH
00017 #define BASE_DEFS_CONF_HH 1
00018 
00019 namespace base {
00020 namespace defs {
00021 
00022 const uint MAX_THREADS                      = 1024;
00023 const uint THREAD_STACK_SIZE                =  16 * KILOBYTE;
00024 const uint DEFAULT_THREAD_MEMORY_SIZE       =   8 * KILOBYTE;   
00025 const uint     MAX_THREAD_MEMORY_SIZE       =  16 * MEGABYTE;
00026 const uint FAST_LOCK_LOOP_YIELD             = MILLION;          
00027 const long SUBALLOCATE_THREAD_MEMORY_MARGIN = 128;              
00028 const long SUBALLOCATE_THREAD_MEMORY_ALIGN  = 64;               
00029 
00030 } // namespace defs
00031 } // namespace base
00032 
00033 using namespace base::defs;
00034 
00035 #endif // BASE_DEFS_CONF_HH
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:06 2007