 |
log4cplus
2.0.6
|
Go to the documentation of this file.
24 #ifndef LOG4CPLUS_THREADS_HEADER_
25 #define LOG4CPLUS_THREADS_HEADER_
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
61 struct SignalsBlockerImpl;
62 std::unique_ptr<SignalsBlockerImpl> impl;
66 #ifndef LOG4CPLUS_SINGLE_THREADED
84 bool isRunning()
const;
87 virtual void run() = 0;
100 std::unique_ptr<std::thread> thread;
101 mutable std::atomic<int> flags;
107 #endif // LOG4CPLUS_SINGLE_THREADED
113 #endif // LOG4CPLUS_THREADS_HEADER_
LOG4CPLUS_EXPORT void setCurrentThreadName2(const log4cplus::tstring &name)
LOG4CPLUS_EXPORT void setCurrentThreadName(const log4cplus::tstring &name)
void join(tstring &result, Iterator start, Iterator last, tstring const &sep)
Join a list of items into a string.
std::basic_string< tchar > tstring
There are many cross-platform C++ Threading libraries.
LOG4CPLUS_EXPORT void blockAllSignals()
This class blocks all POSIX signals when created and unblocks them when destroyed.
helpers::SharedObjectPtr< AbstractThread > AbstractThreadPtr
LOG4CPLUS_EXPORT const log4cplus::tstring & getCurrentThreadName()
LOG4CPLUS_EXPORT const log4cplus::tstring & getCurrentThreadName2()
LOG4CPLUS_EXPORT void yield()