Make pthread_get/setschedparam weak for native bridge

Bug: http://b/130825973
Test: run affected app on cuttlefish
Change-Id: I776f26f5eaebdfdb1256ff621bd05ef5a90b852a
(cherry picked from commit c7b81108b4)
This commit is contained in:
dimitry 2019-04-25 16:23:53 +02:00
parent b7944a3b2d
commit 62b214dc87
2 changed files with 5 additions and 0 deletions

View file

@ -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;

View file

@ -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;