25 std::stringstream strStr;
36 MIL <<
"Creating the Event Dispatcher for thread: " <<
name() <<
"("<<
_threadId<<
")" << std::endl;
39 if ( ctx && ctx != sp->glibContext() )
MIL <<
"Ignoring passed GMainContext, because a Zypp Event Dispatcher was created before. This might be a bug!" << std::endl;
47 WAR <<
"Dispatcher was already created for the current thread" << std::endl;
62 MIL <<
"Requested Event Dispatcher for thread: " <<
name() <<
"("<<
_threadId<<
") but none was created." << std::endl;
static std::shared_ptr< EventDispatcher > create(GMainContext *ctx=0)
struct _GMainContext GMainContext
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::thread::id _threadId
std::shared_ptr< EventDispatcher > ensureDispatcher(GMainContext *ctx=0)