📄 defproc.h
字号:
/* *---------------------------------------------------------------------- * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -