Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::ThreadData Class Reference

#include <src/libslic3r/Thread.hpp>

Public Member Functions

std::mt19937 & random_generator ()
 
void tbb_worker_thread_set_c_locales ()
 

Private Attributes

std::mt19937 m_random_generator
 
bool m_random_generator_initialized { false }
 
bool m_tbb_worker_thread_c_locales_set { false }
 

Detailed Description

Member Function Documentation

◆ random_generator()

std::mt19937 & Slic3r::ThreadData::random_generator ( )
inline
73 {
75 std::random_device rd;
76 m_random_generator.seed(rd());
78 }
79 return m_random_generator;
80 }
bool m_random_generator_initialized
Definition Thread.hpp:86
std::mt19937 m_random_generator
Definition Thread.hpp:85

References m_random_generator, and m_random_generator_initialized.

◆ tbb_worker_thread_set_c_locales()

void Slic3r::ThreadData::tbb_worker_thread_set_c_locales ( )
284{
285// static std::atomic<int> cnt = 0;
286// std::cout << "TBBLocalesSetter Entering " << cnt ++ << " ID " << std::this_thread::get_id() << "\n";
288 // Set locales of the worker thread to "C".
290 // OSX specific: Elevate QOS on Apple Silicon.
293 }
294}
bool m_tbb_worker_thread_c_locales_set
Definition Thread.hpp:87
void set_current_thread_qos()
Definition Thread.cpp:273
void set_c_locales()
Definition LocalesUtils.hpp:48

References m_tbb_worker_thread_c_locales_set, Slic3r::set_c_locales(), and Slic3r::set_current_thread_qos().

Referenced by Slic3r::TBBLocalesSetter::on_scheduler_entry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_random_generator

std::mt19937 Slic3r::ThreadData::m_random_generator
private

Referenced by random_generator().

◆ m_random_generator_initialized

bool Slic3r::ThreadData::m_random_generator_initialized { false }
private

Referenced by random_generator().

◆ m_tbb_worker_thread_c_locales_set

bool Slic3r::ThreadData::m_tbb_worker_thread_c_locales_set { false }
private

The documentation for this class was generated from the following files: