Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
_schedPxLib.c
Package: vxwork_src.rar [view]
Upload User: nvosite88
Upload Date: 2007-01-17
Package Size: 4983k
Code Size: 1k
Category:
VxWorks
Development Platform:
C/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 accessed
- from 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;
- }