#include <BaseThreadsManager.h>
◆ BaseThreadsManager() [1/2]
template<typename EnumType , EnumType MaxCount>
◆ BaseThreadsManager() [2/2]
template<typename EnumType , EnumType MaxCount>
The Copy constructor is deleted to avoid copying instances.
- Returns
- n/a
◆ ~BaseThreadsManager()
template<typename EnumType , EnumType MaxCount>
◆ EnsureInitialized()
template<typename EnumType , EnumType MaxCount>
◆ Initialize()
template<typename EnumType , EnumType MaxCount>
Initializes the BaseThreadsManager.
- Returns
- True if the initialization is successful, false otherwise.
If pre thread initialization actions fail, return false
If post thread initialization actions fail, return false
Otherwise, see if mutex and all threads managed are initialized.
◆ operator=()
template<typename EnumType , EnumType MaxCount>
The assignment operator constructor is deleted to avoid copying instances.
- Returns
- n/a
◆ PostThreadInitializationActions()
template<typename EnumType , EnumType MaxCount>
◆ PreThreadInitializationActions()
template<typename EnumType , EnumType MaxCount>
◆ ResumeAll()
template<typename EnumType , EnumType MaxCount>
◆ ResumeSelected()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::ResumeSelected |
( |
const std::vector< EnumType > & |
selectedEnums | ) |
|
|
noexcept |
◆ StartAll()
template<typename EnumType , EnumType MaxCount>
◆ StartAllAndWaitToVerify()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StartAllAndWaitToVerify |
( |
uint32_t |
waitToVerifyTimeoutMsec | ) |
|
|
noexcept |
Function that will test if the thread has been started
Expecting true within the timeout specified
Print info to user.
Return result
◆ StartAllExceptSelected()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StartAllExceptSelected |
( |
const std::vector< EnumType > & |
selectedEnums | ) |
|
|
noexcept |
Go through all threads managed
If it's not in the selected threads to not start
Start Thread
◆ StartAllExceptSelectedAndWaitToVerify()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StartAllExceptSelectedAndWaitToVerify |
( |
const std::vector< EnumType > & |
selectedEnums, |
|
|
uint32_t |
waitToVerifyTimeoutMsec |
|
) |
| |
|
noexcept |
For all threads managed
If they're not in the selected threads list indicated not to start
Start threads
Function that will test if the specified threads has been started
Get if the threads not selected are running
Check if all threads not selected have started
Expecting true within the timeout specified
Print info to user.
Return result
◆ StartSelected()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StartSelected |
( |
const std::vector< EnumType > & |
selectedEnums | ) |
|
|
noexcept |
◆ StartSelectedAndWaitToVerify()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StartSelectedAndWaitToVerify |
( |
const std::vector< EnumType > & |
selectedEnums, |
|
|
uint32_t |
waitToVerifyTimeoutMsec |
|
) |
| |
|
noexcept |
Function that will test if the specified threads has been started
Get if the selected threads are running
Check if all specified subthreads have started
Expecting true within the timeout specified
Print info to user.
Return result
◆ StopAll()
template<typename EnumType , EnumType MaxCount>
◆ StopAllAndWaitToVerify()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StopAllAndWaitToVerify |
( |
uint32_t |
waitToVerifyTimeoutMsec | ) |
|
|
noexcept |
Function that will test if the thread has been started
Expecting true within the timeout specified
◆ StopAllExceptSelected()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StopAllExceptSelected |
( |
const std::vector< EnumType > & |
selectedEnums | ) |
|
|
noexcept |
◆ StopAllExceptSelectedAndWaitToVerify()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StopAllExceptSelectedAndWaitToVerify |
( |
const std::vector< EnumType > & |
selectedEnums, |
|
|
uint32_t |
waitToVerifyTimeoutMsec |
|
) |
| |
|
noexcept |
For all threads managed
If they're not in the selected threads list indicated not to start
Start threads
Function that will test if the specified threads has been stopped
Get if the threads not selected are stopped
Check if all threads not selected have started
Expecting true within the timeout specified
Print info to user.
Return result
◆ StopSelected()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StopSelected |
( |
const std::vector< EnumType > & |
selectedEnums | ) |
|
|
noexcept |
◆ StopSelectedAndWaitToVerify()
template<typename EnumType , EnumType MaxCount>
| bool BaseThreadsManager< EnumType, MaxCount >::StopSelectedAndWaitToVerify |
( |
const std::vector< EnumType > & |
selectedEnums, |
|
|
uint32_t |
waitToVerifyTimeoutMsec |
|
) |
| |
|
noexcept |
Function that will test if the specified threads has been stopped
Expecting true within the timeout specified
◆ enumToString
template<typename EnumType , EnumType MaxCount>
| std::function<const char*(EnumType)> BaseThreadsManager< EnumType, MaxCount >::enumToString |
|
private |
◆ initialized
template<typename EnumType , EnumType MaxCount>
Flag indicating if the MwSubThreadsManager is initialized.
◆ mutex
template<typename EnumType , EnumType MaxCount>
◆ mutexName
template<typename EnumType , EnumType MaxCount>
| const char BaseThreadsManager< EnumType, MaxCount >::mutexName = "BaseThreadManager-Mutex" |
|
staticprivate |
◆ threadsInitializedTracker
template<typename EnumType , EnumType MaxCount>
◆ threadsManaged
template<typename EnumType , EnumType MaxCount>
◆ threadsStartedTracker
template<typename EnumType , EnumType MaxCount>
◆ threadsStoppedTracker
template<typename EnumType , EnumType MaxCount>
◆ timeBetweenChecksMsec
template<typename EnumType , EnumType MaxCount>
◆ verbose
template<typename EnumType , EnumType MaxCount>
The documentation for this class was generated from the following file: