OmniSciDB  2b310ab3b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
thread_count.h File Reference
#include <algorithm>
#include <thread>
+ Include dependency graph for thread_count.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int cpu_threads ()
 

Variables

unsigned g_cpu_threads_override
 

Function Documentation

int cpu_threads ( )
inline

Definition at line 24 of file thread_count.h.

References g_cpu_threads_override.

Referenced by anonymous_namespace{TableArchiver.cpp}::adjust_altered_table_files(), OverlapsJoinHashTable::approximateTupleCount(), BaselineJoinHashTable::approximateTupleCount(), Fragmenter_Namespace::InsertOrderFragmenter::compactRows(), OverlapsJoinHashTable::computeBucketSizes(), StringDictionary::copyStrings(), CodeGenerator::createInValuesBitmap(), Executor::executeWorkUnitImpl(), anonymous_namespace{RelAlgTranslator.cpp}::get_in_values_expr(), ArrowResultSetConverter::getArrowBatch(), StringDictionary::getEquals(), RelAlgTranslator::getInIntegerSetExpr(), StringDictionary::getLike(), StringDictionary::getRegexpLike(), Fragmenter_Namespace::InsertOrderFragmenter::getVacuumOffsets(), OverlapsJoinHashTable::initHashTableOnCpu(), BaselineJoinHashTable::initHashTableOnCpu(), JoinHashTable::initOneToManyHashTableOnCpu(), JoinHashTable::initOneToOneHashTableOnCpu(), ColumnarResults::materializeAllColumnsGroupBy(), ColumnarResults::materializeAllColumnsThroughIteration(), ColumnarResults::materializeAllLazyColumns(), ResultSet::ResultSetComparator< BUFFER_ITERATOR_TYPE >::materializeCountDistinctColumn(), ResultSetStorage::moveEntriesToBuffer(), StorageIOFacility< RelAlgExecutorTraits >::normalized_cpu_threads(), ResultSet::parallelRowCount(), ResultSet::parallelTop(), ResultSetStorage::reduce(), synthesize_metadata(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), and Fragmenter_Namespace::InsertOrderFragmenter::updateColumns().

24  {
25  auto ov = g_cpu_threads_override;
26  return (ov <= 0) ? std::max(2 * std::thread::hardware_concurrency(), 1U) : ov;
27 }
unsigned g_cpu_threads_override

+ Here is the caller graph for this function:

Variable Documentation

unsigned g_cpu_threads_override

Definition at line 19 of file thread_count.cpp.

Referenced by cpu_threads().