__BIONIC_WEAK_FOR_NATIVE_BRIDGE int pthread_getcpuclockid(pthread_t t, clockid_t* clockid) {
pid_t tid = __pthread_internal_gettid(t, "pthread_getcpuclockid"); if (tid == -1) return ESRCH;
// The tid is stored in the top bits, but negated.
clockid_t result = ~static_cast<clockid_t>(tid) << 3; // Bits 0 and 1: clock type (0 = CPUCLOCK_PROF, 1 = CPUCLOCK_VIRT, 2 = CPUCLOCK_SCHED).
result |= 2/* CPUCLOCK_SCHED */; // Bit 2: thread (set) or process (clear)?
result |= 4/* CPUCLOCK_PERTHREAD_MASK */;
*clockid = result; return0;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-28)
¤
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.