libtk.h

来自「嵌入式操作系统T-Kernel 完整代码」· C头文件 代码 · 共 52 行

H
52
字号
/* *---------------------------------------------------------------------- *    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 + =
减小字号Ctrl + -
显示快捷键?