RTOS Wrapper
API reference
Loading...
Searching...
No Matches
Classes
BaseThreadsManager.h File Reference

Optional registry that starts / stops a group of BaseThread instances together. More...

#include <algorithm>
#include <map>
#include <bitset>
#include <functional>
#include "OsAbstraction.h"
#include "OsUtility.h"
#include "Utility.h"
#include "BaseThread.h"
#include "Mutex.h"
#include "MutexGuard.h"

Go to the source code of this file.

Classes

class  BaseThreadsManager< EnumType, MaxCount >
 

Detailed Description

Optional registry that starts / stops a group of BaseThread instances together.

Useful when several worker threads share a lifecycle (e.g. all middleware sub-threads brought up at boot and torn down on shutdown).

Thread-safety: the registry is guarded by an internal mutex; callers may register / start / stop from any task context.

Allocation: the registry uses std::map, so each registration allocates once. The threads themselves never allocate stack — the caller supplies each BaseThread's stack buffer.

Todo:
Add