CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
concurrency.h File Reference
#include <pthread.h>
#include <cassert>
#include <queue>
#include <set>
#include <vector>
#include "util/async.h"
#include "util/atomic.h"
#include "util/export.h"
#include "util/mutex.h"
#include "util/single_copy.h"
#include "util/concurrency_impl.h"
Include dependency graph for concurrency.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Lockable
 
class  SynchronizingCounter< T >
 
class  Observable< ParamT >
 
class  Observable< ParamT >
 
class  Signal
 
class  FifoChannel< T >
 
class  ConcurrentWorkers< WorkerT >
 
struct  ConcurrentWorkers< WorkerT >::Job< DataT >
 
struct  ConcurrentWorkers< WorkerT >::RunBinding
 
struct  ConcurrentWorkers< WorkerT >::WorkerRunBinding
 
class  ConcurrentWorker< DerivedWorkerT >
 

Functions

CVMFS_EXPORT unsigned int GetNumberOfCpuCores ()
 

Variables

static const unsigned int kFallbackNumberOfCpus = 1
 

Function Documentation

CVMFS_EXPORT unsigned int GetNumberOfCpuCores ( )

Returns the number of CPU cores present in the system or a fallback number if it failed to determine the number of CPU cores.

Returns
the number of active CPU cores in the system

This file is part of the CernVM File System.

Definition at line 18 of file concurrency.cc.

Referenced by anonymous_namespace{shrinkwrap.cc}::Params::Complete(), swissknife::CommandMigrate::DoMigrationAndCommit(), IngestionPipeline::IngestionPipeline(), and ScrubbingPipeline::ScrubbingPipeline().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const unsigned int kFallbackNumberOfCpus = 1
static

Definition at line 271 of file concurrency.h.

Referenced by GetNumberOfCpuCores().