summaryrefslogtreecommitdiff
path: root/components/libc/pthreads/sched.h
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-10-17 17:19:12 -0400
committerMeco Man <[email protected]>2021-10-17 17:19:12 -0400
commitb513d37cf2fc33c2dd20021316533feaac0bef23 (patch)
treef14e24d145a40620dbb8fd5a5d807b972ec4a1d5 /components/libc/pthreads/sched.h
parent9fe546b0d86b17c64e57447913c8a9f3a9c40534 (diff)
[libc][posix] create 'posix' folder and move related files into it
Diffstat (limited to 'components/libc/pthreads/sched.h')
-rw-r--r--components/libc/pthreads/sched.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/components/libc/pthreads/sched.h b/components/libc/pthreads/sched.h
deleted file mode 100644
index 07e2c0c6a8..0000000000
--- a/components/libc/pthreads/sched.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- */
-
-#ifndef __SCHED_H__
-#define __SCHED_H__
-
-#include <rtthread.h>
-#include <pthread.h>
-
-/* Thread scheduling policies */
-enum
-{
- SCHED_OTHER = 0,
- SCHED_FIFO,
- SCHED_RR,
- SCHED_MIN = SCHED_OTHER,
- SCHED_MAX = SCHED_RR
-};
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-int sched_yield(void);
-int sched_get_priority_min(int policy);
-int sched_get_priority_max(int policy);
-int sched_setscheduler(pid_t pid, int policy);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif