#ifdef __BIONIC__ #include <bionic/tls.h> // Access to our own TLS slot. #endif
#include <pthread.h>
namespace art HIDDEN {
inline Thread* Thread::Current() { // We rely on Thread::Current returning null for a detached thread, so it's not obvious // that we can replace this with a direct %fs access on x86. if (!is_started_) { return nullptr;
} else { #ifdef __BIONIC__ void* thread = __get_tls()[TLS_SLOT_ART_THREAD_SELF]; #else
Thread* thread = Thread::self_tls_; #endif returnreinterpret_cast<Thread*>(thread);
}
}
} // namespace art
#endif// ART_RUNTIME_THREAD_CURRENT_INL_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.