24 #ifndef LOG4CPLUS_THREADS_HEADER_ 25 #define LOG4CPLUS_THREADS_HEADER_ 29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 51 #ifndef LOG4CPLUS_SINGLE_THREADED 69 bool isRunning()
const;
72 virtual void run() = 0;
85 std::unique_ptr<std::thread> thread;
86 mutable std::atomic<int> flags;
92 #endif // LOG4CPLUS_SINGLE_THREADED 98 #endif // LOG4CPLUS_THREADS_HEADER_ LOG4CPLUS_EXPORT void setCurrentThreadName(const log4cplus::tstring &name)
There are many cross-platform C++ Threading libraries.
LOG4CPLUS_EXPORT void blockAllSignals()
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName()
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName2()
helpers::SharedObjectPtr< AbstractThread > AbstractThreadPtr
std::basic_string< tchar > tstring
LOG4CPLUS_EXPORT void yield()
void join(tstring &result, Iterator start, Iterator last, tstring const &sep)
Join a list of items into a string.
LOG4CPLUS_EXPORT void setCurrentThreadName2(const log4cplus::tstring &name)