summaryrefslogtreecommitdiffstats
path: root/libc/bionic/pthread_getcpuclockid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/pthread_getcpuclockid.cpp')
-rw-r--r--libc/bionic/pthread_getcpuclockid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/bionic/pthread_getcpuclockid.cpp b/libc/bionic/pthread_getcpuclockid.cpp
index d11f56a..2bf2004 100644
--- a/libc/bionic/pthread_getcpuclockid.cpp
+++ b/libc/bionic/pthread_getcpuclockid.cpp
@@ -28,11 +28,11 @@
#include <errno.h>
-#include "pthread_accessor.h"
+#include "pthread_internal.h"
int pthread_getcpuclockid(pthread_t t, clockid_t* clockid) {
- pthread_accessor thread(t);
- if (thread.get() == NULL) {
+ pthread_internal_t* thread = __pthread_internal_find(t);
+ if (thread == NULL) {
return ESRCH;
}