From a5ea5f410aac5c3eab3edd42128ed1abd9ee9daa Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 5 May 2021 19:31:02 +0000 Subject: [PATCH] fix: Correct namespace issue on prio symbols --- runtime/src/runtime.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/runtime/src/runtime.c b/runtime/src/runtime.c index b03fdb0..fc9cefc 100644 --- a/runtime/src/runtime.c +++ b/runtime/src/runtime.c @@ -147,12 +147,12 @@ runtime_pthread_prio(pthread_t thread, unsigned int nice) struct sched_param sp; int policy; - call_getrlimit(RLIMIT_CPU, "CPU"); - call_getrlimit(RLIMIT_RTTIME, "RTTIME"); - call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); - call_setrlimit(RLIMIT_RTPRIO, RLIM_INFINITY, RLIM_INFINITY); - call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); - call_getrlimit(RLIMIT_NICE, "NICE"); + runtime_call_getrlimit(RLIMIT_CPU, "CPU"); + runtime_call_getrlimit(RLIMIT_RTTIME, "RTTIME"); + runtime_call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); + runtime_call_setrlimit(RLIMIT_RTPRIO, RLIM_INFINITY, RLIM_INFINITY); + runtime_call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); + runtime_call_getrlimit(RLIMIT_NICE, "NICE"); if (pthread_getschedparam(thread, &policy, &sp) < 0) { perror("pth_getparam: "); } sp.sched_priority = sched_get_priority_max(SCHED_RR) - nice; @@ -171,13 +171,13 @@ runtime_set_prio(unsigned int nice) { struct sched_param sp; - call_getrlimit(RLIMIT_CPU, "CPU"); - call_getrlimit(RLIMIT_RTTIME, "RTTIME"); - call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); - call_setrlimit(RLIMIT_RTPRIO, RLIM_INFINITY, RLIM_INFINITY); - call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); + runtime_call_getrlimit(RLIMIT_CPU, "CPU"); + runtime_call_getrlimit(RLIMIT_RTTIME, "RTTIME"); + runtime_call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); + runtime_call_setrlimit(RLIMIT_RTPRIO, RLIM_INFINITY, RLIM_INFINITY); + runtime_call_getrlimit(RLIMIT_RTPRIO, "RTPRIO"); - call_getrlimit(RLIMIT_NICE, "NICE"); + runtime_call_getrlimit(RLIMIT_NICE, "NICE"); if (sched_getparam(0, &sp) < 0) { perror("getparam: "); } sp.sched_priority = sched_get_priority_max(SCHED_RR) - nice;