OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{StringDictionary.cpp}::ThreadInfo Struct Reference

Public Member Functions

 ThreadInfo (const int64_t max_thread_count, const int64_t num_elems, const int64_t target_elems_per_thread)
 

Public Attributes

int64_t num_threads {0}
 
int64_t num_elems_per_thread
 

Detailed Description

Definition at line 97 of file StringDictionary.cpp.

Constructor & Destructor Documentation

anonymous_namespace{StringDictionary.cpp}::ThreadInfo::ThreadInfo ( const int64_t  max_thread_count,
const int64_t  num_elems,
const int64_t  target_elems_per_thread 
)
inline

Definition at line 101 of file StringDictionary.cpp.

103  {
104  num_threads =
105  std::min(std::max(max_thread_count, int64_t(1)),
106  ((num_elems + target_elems_per_thread - 1) / target_elems_per_thread));
108  std::max((num_elems + num_threads - 1) / num_threads, int64_t(1));
109  }

Member Data Documentation

int64_t anonymous_namespace{StringDictionary.cpp}::ThreadInfo::num_elems_per_thread

Definition at line 99 of file StringDictionary.cpp.

int64_t anonymous_namespace{StringDictionary.cpp}::ThreadInfo::num_threads {0}

Definition at line 98 of file StringDictionary.cpp.


The documentation for this struct was generated from the following file: