MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / id

Method id

src/hx/thread/ThreadImpl.cpp:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112int hx::thread::Thread_obj::id()
113{
114 auto info = tls.get();
115
116 if (nullptr == info)
117 {
118 return 0;
119 }
120 else
121 {
122 return info->id;
123 }
124}
125
126hx::thread::ThreadImpl_obj::ThreadImpl_obj(const int _id)
127 : id(_id)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected