⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _schedpxlib.c

📁 VXWORKS源代码
💻 C
字号:
/* _schedPxLib.c - kernel support for the POSIX scheduling library *//* Copyright 1984-2000 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01a,12sep00,jgn  written*//*DESCRIPTION: Provides support routines for the POSIX scheduler library that can be accessedfrom outside the kernel (to cope with deficiencies in the core kernel API).*//* INCLUDES */#include "vxWorks.h"/* externs */extern BOOL	roundRobinOn;		/* round robin enabled? */extern ULONG	roundRobinSlice;	/* period if it is *//********************************************************************************* _schedPxKernelIsTimeSlicing - return current state of timeslicing & period** This routine allows tasks to determine the current state of time slicing in* the system, including the current period if time slicing is enabled. The* parameter <pPeriod> may be passed as NULL if this information is not* required. The value stored in <pPeriod> is only valid if the function* returns TRUE.** RETURNS: TRUE if time slicing enabled, FALSE otherwise. Also returns current* time slice period via <pPeriod> if it is non-NULL and time slicing is enabled.** SEE ALSO: kernelTimeSlice()** NOMANUAL*/ BOOL _schedPxKernelIsTimeSlicing    (    ULONG *	pPeriod                 /* place to store period, or NULL */    )    {    if ((roundRobinOn) && (pPeriod != NULL))        {        *pPeriod = roundRobinSlice;        }     return roundRobinOn;    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -