T-Kernel 嵌入式系统源码

源代码在线查看: libtk.h

软件大小: 2613 K
上传用户: sgly2002
关键词: T-Kernel 嵌入式系统 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*				 *----------------------------------------------------------------------				 *    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 				#include 				#include 				#include 				#include 								/*				 * 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);				\					}								/* ------------------------------------------------------------------------ */							

相关资源