11 : _threadId(
std::this_thread::get_id() ),
12 _nativeHandle( pthread_self() )
25 std::stringstream strStr;
44 WAR <<
"Dispatcher was already created for the current thread" << std::endl;
static std::shared_ptr< EventDispatcher > create()
std::weak_ptr< EventDispatcher > _dispatcher
static 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