Public Member Functions | |
| MultithreadInfo () | |
Static Public Member Functions | |
| static unsigned int | memory_consumption () |
| ::ExceptionBase & | ExcProcNotPresent () |
Public Attributes | |
| const unsigned int | n_cpus |
| unsigned int | n_default_threads |
Static Private Member Functions | |
| static unsigned int | get_n_cpus () |
| MultithreadInfo::MultithreadInfo | ( | ) |
The constructor determines the number of CPUs in the system. At the moment detection of CPUs is only implemented on Linux computers with the /proc filesystem and on Sun machines. The number of CPUs present is set to one if detection failed or if detection is not supported.
Determine an estimate for the memory consumption (in bytes) of this object. Since sometimes the size of objects can not be determined exactly (for example: what is the memory consumption of an STL std::map type with a certain number of elements?), this is only an estimate. however often quite close to the true value.
| ::ExceptionBase& MultithreadInfo::ExcProcNotPresent | ( | ) | [static] |
Exception
Private function to determine the number of CPUs. Implementation for Linux, OSF, SGI, and Sun machines; if no detection of the number of CPUs is supported, or if detection fails, this function returns one.
The number of CPUs in the system. It is one if detection is not implemented or failed.
If it is one, although you are on a multi-processor machine, please refer to the documentation in multithread_info.cc near to the error directive.
The number of threads to use as a default value for all functions that support multithreading. At start time this is n_cpus or one, if detection of the number of CPUs is not possible.
documentation generated on Wed Jul 28 23:06:36 2010 by
doxygen
1.5.6