aboutsummaryrefslogtreecommitdiff
path: root/testcases/open_posix_testsuite/functional/threads/schedule/1-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/open_posix_testsuite/functional/threads/schedule/1-1.c')
-rw-r--r--testcases/open_posix_testsuite/functional/threads/schedule/1-1.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testcases/open_posix_testsuite/functional/threads/schedule/1-1.c b/testcases/open_posix_testsuite/functional/threads/schedule/1-1.c
index b221809d9..9d9e12b09 100644
--- a/testcases/open_posix_testsuite/functional/threads/schedule/1-1.c
+++ b/testcases/open_posix_testsuite/functional/threads/schedule/1-1.c
@@ -28,7 +28,7 @@
#include "posixtest.h"
#include "safe_helpers.h"
-#define TEST "1-1"
+#define TEST "5-4"
#define AREA "scheduler"
#define ERROR_PREFIX "unexpected error: " AREA " " TEST ": "
@@ -36,18 +36,18 @@
#define LOW_PRIORITY 5
#define RUNTIME 5
-static pthread_barrier_t barrier;
+pthread_barrier_t barrier;
static volatile int woken_up;
static volatile int low_done;
-static float timediff(struct timespec t2, struct timespec t1)
+float timediff(struct timespec t2, struct timespec t1)
{
float diff = t2.tv_sec - t1.tv_sec;
diff += (t2.tv_nsec - t1.tv_nsec) / 1000000000.0;
return diff;
}
-static int my_pthread_barrier_wait(pthread_barrier_t *p)
+int my_pthread_barrier_wait(pthread_barrier_t *p)
{
int rc;
@@ -57,7 +57,7 @@ static int my_pthread_barrier_wait(pthread_barrier_t *p)
return rc;
}
-static void *hi_prio_thread(void *tmp)
+void *hi_prio_thread(void *tmp)
{
struct sched_param param;
int policy;
@@ -82,7 +82,7 @@ static void *hi_prio_thread(void *tmp)
pthread_exit(NULL);
}
-static void *low_prio_thread(void *tmp)
+void *low_prio_thread(void *tmp)
{
struct timespec start_timespec, current_timespec;
struct sched_param param;