aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-04-28 23:20:16 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-04-28 23:20:16 +0000
commitb8f5d8d422dbb21ff9002cbbcd72e2ae272a9a0d (patch)
treea52e075eb79f1977cb075fad5dbbf3c438b335a0
parentd6f349aae711be5ebef25d1bccb719a8964d9393 (diff)
parent62b214dc87ce76055a21a6f5b9b4fdf37bea1952 (diff)
downloadbionic-b8f5d8d422dbb21ff9002cbbcd72e2ae272a9a0d.tar.gz
Snap for 5512005 from 62b214dc87ce76055a21a6f5b9b4fdf37bea1952 to qt-release
Change-Id: Ib3385e9f2df75382675666a4a7c90ccab705c370
-rw-r--r--libc/bionic/pthread_getschedparam.cpp2
-rw-r--r--libc/bionic/pthread_setschedparam.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/libc/bionic/pthread_getschedparam.cpp b/libc/bionic/pthread_getschedparam.cpp
index ed1853bdc..765287fa4 100644
--- a/libc/bionic/pthread_getschedparam.cpp
+++ b/libc/bionic/pthread_getschedparam.cpp
@@ -28,9 +28,11 @@
#include <errno.h>
+#include "private/bionic_defs.h"
#include "private/ErrnoRestorer.h"
#include "pthread_internal.h"
+__BIONIC_WEAK_FOR_NATIVE_BRIDGE
int pthread_getschedparam(pthread_t t, int* policy, sched_param* param) {
ErrnoRestorer errno_restorer;
diff --git a/libc/bionic/pthread_setschedparam.cpp b/libc/bionic/pthread_setschedparam.cpp
index 8a0272868..656fe3208 100644
--- a/libc/bionic/pthread_setschedparam.cpp
+++ b/libc/bionic/pthread_setschedparam.cpp
@@ -30,9 +30,11 @@
#include <pthread.h>
#include <sched.h>
+#include "private/bionic_defs.h"
#include "private/ErrnoRestorer.h"
#include "pthread_internal.h"
+__BIONIC_WEAK_FOR_NATIVE_BRIDGE
int pthread_setschedparam(pthread_t t, int policy, const sched_param* param) {
ErrnoRestorer errno_restorer;
@@ -42,6 +44,7 @@ int pthread_setschedparam(pthread_t t, int policy, const sched_param* param) {
return (sched_setscheduler(tid, policy, param) == -1) ? errno : 0;
}
+__BIONIC_WEAK_FOR_NATIVE_BRIDGE
int pthread_setschedprio(pthread_t t, int priority) {
ErrnoRestorer errno_restorer;