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

Method set_pointer

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

Source from the content-addressed store, hash-verified

114
115template <class _Tp>
116void __thread_specific_ptr<_Tp>::set_pointer(pointer __p) {
117 _LIBCPP_ASSERT_INTERNAL(get() == nullptr, "Attempting to overwrite thread local data");
118 std::__libcpp_tls_set(__key_, __p);
119}
120
121template <>
122struct hash<__thread_id> : public __unary_function<__thread_id, size_t> {

Callers 3

__thread_proxyFunction · 0.80
__thread_proxy_cxx03Function · 0.80

Calls 2

getFunction · 0.50
__libcpp_tls_setFunction · 0.50

Tested by

no test coverage detected