Lines Matching +full:get +full:- +full:only
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
66 // Only __thread_local_data() may construct a __thread_specific_ptr
67 // and only with _Tp == __thread_struct.
81 _LIBCPP_HIDE_FROM_ABI pointer get() const { return static_cast<_Tp*>(__libcpp_tls_get(__key_)); } in get() function
82 _LIBCPP_HIDE_FROM_ABI pointer operator*() const { return *get(); }
83 _LIBCPP_HIDE_FROM_ABI pointer operator->() const { return get(); }
101 // __thread_specific_ptr is only created with a static storage duration in ~__thread_specific_ptr()
102 // so this destructor is only invoked during program termination. Invoking in ~__thread_specific_ptr()
109 _LIBCPP_ASSERT_INTERNAL(get() == nullptr, "Attempting to overwrite thread local data"); in set_pointer()
192 std::__invoke(std::move(std::get<1>(__t)), std::move(std::get<_Indices>(__t))...);
199 __thread_local_data().set_pointer(std::get<0>(*__p.get()).release());
201 std::__thread_execute(*__p.get(), _Index());
211 int __ec = std::__libcpp_thread_create(&__t_, &__thread_proxy<_Gp>, __p.get());
233 __thread_local_data().set_pointer(__p->__tsp_.release());
234 (__p->__fn_)();
243 int __ec = std::__libcpp_thread_create(&__t_, &__thread_proxy_cxx03<_InvokePair>, __pp.get());