5 #include "cvmfs_config.h"
14 #ifdef CVMFS_NAMESPACE_GUARD
15 namespace CVMFS_NAMESPACE_GUARD {
19 const int numCPU = sysconf(_SC_NPROCESSORS_ONLN);
23 "number of processors in the system... "
24 "falling back to default '%d'",
29 return static_cast<unsigned int>(numCPU);
33 int retval = pthread_mutex_init(&
lock_, NULL);
35 retval = pthread_cond_init(&
signal_, NULL);
42 int res = pthread_cond_destroy(&
signal_);
44 res = pthread_mutex_destroy(&
lock_);
62 int retval = pthread_cond_broadcast(&
signal_);
71 #ifdef CVMFS_NAMESPACE_GUARD
unsigned int GetNumberOfCpuCores()
assert((mem||(size==0))&&"Out Of Memory")
static const unsigned int kFallbackNumberOfCpus
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)