XWOS API
4.0
XWOS C/C++ API参考手册
|
操作系统抽象层:调度器 更多...
宏定义 | |
#define | XWOS_SKD_PRIORITY_RT_MIN XWOSDL_SKD_PRIORITY_RT_MIN |
XWOS API:最小实时优先级 | |
#define | XWOS_SKD_PRIORITY_RT_MAX XWOSDL_SKD_PRIORITY_RT_MAX |
XWOS API:最大实时优先级 | |
#define | XWOS_SKD_PRIORITY_INVALID XWOSDL_SKD_PRIORITY_INVALID |
XWOS API:无效优先级 | |
#define | XWOS_SKD_PRIORITY_RAISE(base, inc) XWOSDL_SKD_PRIORITY_RAISE(base, inc) |
XWOS API:优先级在base基础上提高inc | |
#define | XWOS_SKD_PRIORITY_DROP(base, dec) XWOSDL_SKD_PRIORITY_DROP(base, dec) |
XWOS API:优先级在base基础上降低dec | |
#define | XWOS_SKD_CONTEXT_BOOT XWOSDL_SKD_CONTEXT_BOOT |
XWOS API:上下文:启动 | |
#define | XWOS_SKD_CONTEXT_THD XWOSDL_SKD_CONTEXT_THD |
XWOS API:上下文:线程 | |
#define | XWOS_SKD_CONTEXT_ISR XWOSDL_SKD_CONTEXT_ISR |
XWOS API:上下文:中断 | |
#define | XWOS_SKD_CONTEXT_BH XWOSDL_SKD_CONTEXT_BH |
XWOS API:上下文:中断底半部 | |
#define | XWOS_SKD_CONTEXT_IDLE XWOSDL_SKD_CONTEXT_IDLE |
XWOS API:上下文:空闲任务 | |
#define | XWOS_THD_LOCAL_DATA_NUM XWOSDL_THD_LOCAL_DATA_NUM |
XWOS API:线程本地数据指针的数量 | |
函数 | |
static bool | xwos_skd_prio_tst_valid (xwpr_t prio) |
XWOS API:检查优先级是否有效 | |
static xwer_t | xwos_skd_start_lc (void) |
XWOS API:启动当前CPU的调度器 | |
static xwid_t | xwos_skd_get_cpuid_lc (void) |
XWOS API:获取当前CPU的ID | |
static void | xwos_skd_get_context_lc (xwsq_t *ctxbuf, xwirq_t *irqnbuf) |
XWOS API:获取当前代码的上下文 | |
static void | xwos_skd_dspmpt_lc (void) |
XWOS API:关闭本地CPU调度器的抢占 | |
static void | xwos_skd_enpmpt_lc (void) |
XWOS API:开启本地CPU调度器的抢占 | |
static void | xwos_skd_dsbh_lc (void) |
XWOS API:关闭本地CPU调度器的中断底半部 | |
static void | xwos_skd_enbh_lc (void) |
XWOS API:开启本地CPU调度器的中断底半部 | |
static xwer_t | xwos_skd_continue_lc (void) |
XWOS API:继续运行本地CPU调度器 | |
static xwer_t | xwos_skd_pause_lc (void) |
XWOS API:暂停本地CPU调度器 | |
操作系统抽象层:调度器
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
在文件 skd.h 中定义.