#include <threadutility.h>
◆ Manager
◆ Period
◆ ~ThreadUtility()
log4cxx::helpers::ThreadUtility::~ThreadUtility |
( |
| ) |
|
◆ addPeriodicTask()
Add the taskName
periodic task.
◆ configure()
Utility method for configuring the ThreadUtility in a standard configuration.
◆ configureFuncs()
Configure the thread functions that log4cxx will use.
Note that setting any of these parameters to nullptr is valid, and simply results in the callback not being called.
◆ createThread()
std::thread log4cxx::helpers::ThreadUtility::createThread |
( |
LogString |
name, |
|
|
Function && |
f, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ hasPeriodicTask()
Has a taskName
periodic task already been added?
◆ instance()
◆ instancePtr()
◆ LOG4CXX_PTR_DEF()
log4cxx::helpers::ThreadUtility::LOG4CXX_PTR_DEF |
( |
Manager |
| ) |
|
◆ postThreadUnblockSignals()
void log4cxx::helpers::ThreadUtility::postThreadUnblockSignals |
( |
| ) |
|
A post-start thread function that unblocks signals that preThreadBlockSignals blocked before starting the thread.
If the system does not have pthreads, does nothing.
◆ preThreadBlockSignals()
void log4cxx::helpers::ThreadUtility::preThreadBlockSignals |
( |
| ) |
|
A pre-start thread function that blocks signals to the new thread (if the system has pthreads).
If the system does not have pthreads, does nothing.
◆ removeAllPeriodicTasks()
void log4cxx::helpers::ThreadUtility::removeAllPeriodicTasks |
( |
| ) |
|
Remove all periodic tasks and stop the processing thread.
◆ removePeriodicTask()
Remove the taskName
periodic task.
◆ removePeriodicTasksMatching()
void log4cxx::helpers::ThreadUtility::removePeriodicTasksMatching |
( |
const LogString & |
namePrefix | ) |
|
Remove any periodic task matching namePrefix
.
◆ threadStartedNameThread()
void log4cxx::helpers::ThreadUtility::threadStartedNameThread |
( |
LogString |
threadName, |
|
|
std::thread::id |
thread_id, |
|
|
std::thread::native_handle_type |
native_handle |
|
) |
| |
A thread_started function that names the thread using the appropriate system call.
◆ SingletonHolder< ThreadUtility >
The documentation for this class was generated from the following file: