cumbia 1.x
general purpose multi threaded library
|
an interface that requires the implementation of a method to create a thread More...
#include <cuthreadfactoryimpl_i.h>
Public Member Functions | |
virtual | ~CuThreadFactoryImplI () |
the class destructor More... | |
virtual CuThreadInterface * | createThread (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... | |
an interface that requires the implementation of a method to create a thread
The implementors of this interface will provide the createThread method in order to instantiate and return an implementation of the CuThreadInterface
The CuThreadFactoryImpl is the cumbia base implementation of this interface. It will return a new CuThread
|
inlinevirtual |
the class destructor
provided to avoid compilers' warnings about virtual destructors
References pdelete.
|
pure virtual |
instantiates and returns an instance of an implementation of the CuThreadInterface
thread_token | a token assigned to this thread. It will be used to decide whether new activities are run in the same thread or in a new one. See CuActivity::registerActivity and CuThread::isEquivalent for more details. See also md_src_tutorial_cuactivity for an example |
eventsBridge | a pointer to an instance of an implementation of the CuThreadsEventBridge_I (see the documentation). |
serviceProvider | a pointer to a CuServiceProvider |
Known implementations:
Implemented in CuThreadFactoryImpl.
Referenced by CuThreadService::getThread().