cumbia 1.x
general purpose multi threaded library
Loading...
Searching...
No Matches
CuThreadFactoryImpl Class Reference

implementation of CuThreadFactoryImplI used to instantiate and return a new CuThread More...

#include <cuthreadfactoryimpl.h>

Inheritance diagram for CuThreadFactoryImpl:

Public Member Functions

CuThreadInterfacecreateThread (const std::string &thread_token, CuThreadsEventBridge_I *eventsBridge, const CuServiceProvider *service_provider, std::vector< CuThreadInterface * > *threads) const
 returns a new CuThread More...
 
- Public Member Functions inherited from CuThreadFactoryImplI
virtual ~CuThreadFactoryImplI ()
 the class destructor More...
 
virtual CuThreadInterfacecreateThread (const std::string &thread_token, CuThreadsEventBridge_I *eventsBridge, const CuServiceProvider *serviceProvider, std::vector< CuThreadInterface * > *threads) const =0
 instantiates and returns an instance of an implementation of the CuThreadInterface More...
 

Detailed Description

implementation of CuThreadFactoryImplI used to instantiate and return a new CuThread

Factory producing CuThread threads (see createThread)

Member Function Documentation

◆ createThread()

CuThreadInterface * CuThreadFactoryImpl::createThread ( const std::string &  thread_token,
CuThreadsEventBridge_I eventsBridge,
const CuServiceProvider service_provider,
std::vector< CuThreadInterface * > *  threads 
) const
virtual

returns a new CuThread

Parameters
thread_tokenthe token associated to the thread
eventsBridgea CuThreadsEventBridge_I implementation
service_provider,theCuServiceProvider of the application
Returns
a new CuThread with the given token using the given event bridge

For a detailed description of the parameters, please refer to the documentation of the CuThread constructor, CuThread::CuThread.

Implements CuThreadFactoryImplI.


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