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

📄 libtk.h

📁 日本著名的的嵌入式实时操作系统T-Kernel的源码及用户手册。
💻 H
字号:
/* *---------------------------------------------------------------------- *    T-Kernel * *    Copyright (C) 2004 by Ken Sakamura. All rights reserved. *    T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * *    Version:   1.01.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28. * *---------------------------------------------------------------------- *//* *	@(#)libtk.h (libtk) * *	T-Kernel library common definitions */#include <basic.h>#include <tk/tkernel.h>#include <tk/sysmgr.h>#include <sys/libs.h>#include <sys/memalloc.h>/* * Initialization and deletion of library internal shared exclusive * control lock  */IMPORT ER  _init_liblock( void );IMPORT void _delete_liblock( void );/* ------------------------------------------------------------------------ */IMPORT	MACB	_Kmacb;		/* Kmalloc control block */IMPORT	MACB	_Vmacb;		/* Vmalloc control block */IMPORT	MACB	_Smacb;		/* Smalloc control block *//* * Memory allocation exclusion control  */#define	MEMLOCK(ERR_RET) {						\		if ( _lib_lock(_LL_MEMALLOC, TRUE) < E_OK ) ERR_RET;	\	}#define	MEMUNLOCK() {							\		_lib_unlock(_LL_MEMALLOC);				\	}/* ------------------------------------------------------------------------ */

⌨️ 快捷键说明

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