|
libzypp 17.38.15
|
#include <zypp-core/ng/base/private/threaddata_p.h>
Public Member Functions | |
| template<typename T> | |
| void | setName (T &&name) |
| const std::string & | name () const |
| std::shared_ptr< EventDispatcher > | dispatcher () |
| std::shared_ptr< EventDispatcher > | ensureDispatcher (GMainContext *ctx=0) |
| void | setDispatcher (const std::shared_ptr< EventDispatcher > &disp) |
Static Public Member Functions | |
| static ZYPP_API ThreadData & | current () |
Private Member Functions | |
| void | syncNativeName () |
| ThreadData () | |
Private Attributes | |
| std::thread::id | _threadId |
| std::string | _threadName |
| lazy initialized to _threadId if unset | |
| std::thread::native_handle_type | _nativeHandle |
| std::weak_ptr< EventDispatcher > | _dispatcher |
Definition at line 15 of file threaddata_p.h.
|
private |
Definition at line 10 of file threaddata.cc.
|
static |
Definition at line 16 of file threaddata.cc.
|
inline |
Definition at line 20 of file threaddata_p.h.
| const std::string & zyppng::ThreadData::name | ( | ) | const |
Definition at line 22 of file threaddata.cc.
| std::shared_ptr< EventDispatcher > zyppng::ThreadData::dispatcher | ( | ) |
Definition at line 59 of file threaddata.cc.
| std::shared_ptr< EventDispatcher > zyppng::ThreadData::ensureDispatcher | ( | GMainContext * | ctx = 0 | ) |
Definition at line 32 of file threaddata.cc.
| void zyppng::ThreadData::setDispatcher | ( | const std::shared_ptr< EventDispatcher > & | disp | ) |
Definition at line 44 of file threaddata.cc.
|
private |
Definition at line 53 of file threaddata.cc.
|
private |
Definition at line 37 of file threaddata_p.h.
|
mutableprivate |
lazy initialized to _threadId if unset
Definition at line 38 of file threaddata_p.h.
|
private |
Definition at line 39 of file threaddata_p.h.
|
private |
Definition at line 40 of file threaddata_p.h.