Grok 12.0.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
ExecSingleton Class Reference

#include <ThreadPool.hpp>

Public Member Functions

 ExecSingleton (const ExecSingleton &)=delete
 
ExecSingletonoperator= (const ExecSingleton &)=delete
 

Static Public Member Functions

static tf::Executor & instance (uint32_t numthreads)
 
static tf::Executor & get (void)
 
static void destroy ()
 
static uint32_t threadId (void)
 

Private Member Functions

 ExecSingleton ()=default
 

Static Private Attributes

static std::unique_ptr< tf::Executor > instance_ = nullptr
 
static std::mutex mutex_
 

Constructor & Destructor Documentation

◆ ExecSingleton() [1/2]

ExecSingleton::ExecSingleton ( const ExecSingleton & )
delete

◆ ExecSingleton() [2/2]

ExecSingleton::ExecSingleton ( )
privatedefault

Member Function Documentation

◆ destroy()

static void ExecSingleton::destroy ( )
inlinestatic

References instance_, and mutex_.

Referenced by grk_deinitialize().

◆ get()

static tf::Executor & ExecSingleton::get ( void )
inlinestatic

◆ instance()

static tf::Executor & ExecSingleton::instance ( uint32_t numthreads)
inlinestatic

References instance_, and mutex_.

Referenced by get(), and grk_initialize().

◆ operator=()

ExecSingleton & ExecSingleton::operator= ( const ExecSingleton & )
delete

◆ threadId()

static uint32_t ExecSingleton::threadId ( void )
inlinestatic

Member Data Documentation

◆ instance_

std::unique_ptr< tf::Executor > ExecSingleton::instance_ = nullptr
staticprivate

Referenced by destroy(), get(), and instance().

◆ mutex_

std::mutex ExecSingleton::mutex_
staticprivate

Referenced by destroy(), get(), and instance().


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