defproc.h

来自「T-kernel 的extension源代码」· C头文件 代码 · 共 64 行

H
64
字号
/* *---------------------------------------------------------------------- *    T-Kernel / Standard Extension * *    Copyright (C) 2006 by Ken Sakamura. All rights reserved. *    T-Kernel / Standard Extension is distributed  *      under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * *    Version:   1.00.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* *	defproc.c (file) * *	File management *	Default process information *	Dummy processing to use the file in non-process environment. */#ifndef _FM_DEFPROC_H_#define _FM_DEFPROC_H_#if USE_PROCESS_MANAGER#  define LOCK_PINFO	LockPinfo()#  define UNLOCK_PINFO	UnlockPinfo()#else#  define LOCK_PINFO#  define UNLOCK_PINFO#endif#define LOCK_PINFO_SECTION(exp) \	{ LOCK_PINFO; exp; UNLOCK_PINFO; }/* * Obtain the process priority. */Inline W GetProcessPriority(ID procid){#if USE_PROCESS_MANAGER	P_STATE		ps;	ER		err;	err = tkse_prc_sts(procid, &ps, NULL);	if ( err == E_OK ) {		err = ps.priority;	}	return err;#else	/* Always 0. */	return 0;#endif}IMPORT ER	InitDefaultPinfo(void);IMPORT PINFO*	GetDefaultPinfo(ID taskid);#endif

⌨️ 快捷键说明

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