MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __thread_proxy

Function __thread_proxy

system/lib/libcxx/include/__thread/thread.h:163–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162template <class _Fp>
163_LIBCPP_HIDE_FROM_ABI void* __thread_proxy(void* __vp) {
164 // _Fp = tuple< unique_ptr<__thread_struct>, Functor, Args...>
165 unique_ptr<_Fp> __p(static_cast<_Fp*>(__vp));
166 __thread_local_data().set_pointer(std::get<0>(*__p.get()).release());
167 typedef typename __make_tuple_indices<tuple_size<_Fp>::value, 2>::type _Index;
168 std::__thread_execute(*__p.get(), _Index());
169 return nullptr;
170}
171
172# else // _LIBCPP_CXX03_LANG
173

Callers

nothing calls this directly

Calls 4

__thread_executeFunction · 0.85
set_pointerMethod · 0.80
getMethod · 0.65
releaseMethod · 0.45

Tested by

no test coverage detected