diff options
Diffstat (limited to 'libc/bionic/pthread_getschedparam.cpp')
-rw-r--r-- | libc/bionic/pthread_getschedparam.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/bionic/pthread_getschedparam.cpp b/libc/bionic/pthread_getschedparam.cpp index 2cdc11a..052fb05 100644 --- a/libc/bionic/pthread_getschedparam.cpp +++ b/libc/bionic/pthread_getschedparam.cpp @@ -29,13 +29,13 @@ #include <errno.h> #include "private/ErrnoRestorer.h" -#include "pthread_accessor.h" +#include "pthread_internal.h" int pthread_getschedparam(pthread_t t, int* policy, sched_param* param) { ErrnoRestorer errno_restorer; - pthread_accessor thread(t); - if (thread.get() == NULL) { + pthread_internal_t* thread = __pthread_internal_find(t); + if (thread == NULL) { return ESRCH; } |