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

Method ~__thread_struct_imp

system/lib/libcxx/src/thread.cpp:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141};
142
143__thread_struct_imp::~__thread_struct_imp() {
144 for (_Notify::iterator i = notify_.begin(), e = notify_.end(); i != e; ++i) {
145 i->first->notify_all();
146 i->second->unlock();
147 }
148 for (_AsyncStates::iterator i = async_states_.begin(), e = async_states_.end(); i != e; ++i) {
149 (*i)->__make_ready();
150 (*i)->__release_shared();
151 }
152}
153
154void __thread_struct_imp::notify_all_at_thread_exit(condition_variable* cv, mutex* m) {
155 notify_.push_back(pair<condition_variable*, mutex*>(cv, m));

Callers

nothing calls this directly

Calls 6

notify_allMethod · 0.80
__make_readyMethod · 0.80
__release_sharedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected