25 std::stringstream strStr;
36 MIL <<
"Creating the Event Dispatcher for thread: " <<
name() <<
"("<<
_threadId<<
")" << std::endl;
45 WAR <<
"Dispatcher was already created for the current thread" << std::endl;
60 MIL <<
"Requested Event Dispatcher for thread: " <<
name() <<
"("<<
_threadId<<
") but none was created." << std::endl;
static std::shared_ptr< EventDispatcher > create()
std::shared_ptr< EventDispatcher > dispatcher()
std::weak_ptr< EventDispatcher > _dispatcher
static ZYPP_API ThreadData & current()
const std::string & name() const
std::string _threadName
lazy initialized to _threadId if unset
void setDispatcher(const std::shared_ptr< EventDispatcher > &disp)
std::thread::native_handle_type _nativeHandle
std::shared_ptr< EventDispatcher > ensureDispatcher()
std::thread::id _threadId