From fed6526bab8f2f53d897f0d881842e97e46f95d1 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Tue, 26 Nov 2013 14:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E4=BA=92=E6=96=A5=E9=94=81=EF=BC=8C=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E9=98=BB=E5=A1=9E=E4=B8=BB=E5=BE=AA=E7=8E=AF=E7=9A=84=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/LCUI/kernel/main.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/LCUI/kernel/main.h b/include/LCUI/kernel/main.h index 3eec4260..52d5a74c 100755 --- a/include/LCUI/kernel/main.h +++ b/include/LCUI/kernel/main.h @@ -23,7 +23,7 @@ /* **************************************************************************** * main.h -- 使LCUI能够正常工作的相关主要函数 * - * 版权所有 (C) 2013 归属于 + * 版权所有 (C) 2012-2013 归属于 * 刘超 * * 这个文件是LCUI项目的一部分,并且只可以根据GPLv2许可协议来使用、更改和发布。 @@ -45,12 +45,13 @@ LCUI_BEGIN_HEADER /************************ LCUI程序的数据 *******************************/ typedef struct LCUI_App_ { - LCUI_ID id; /* LCUI程序的ID,如果是以线程方式运行的话,这个就是线程ID */ - void (*func)(void); /* 在LCUI退出时调用的函数 */ - LCUI_Queue tasks; /* 程序的任务队列 */ - LCUI_Queue events; /* 事件队列 */ - LCUI_Queue widget_lib; /* 部件类型库 */ - LCUI_Sleeper mainloop_sleeper; + LCUI_ID id; /**< LCUI程序的ID */ + void (*func)(void); /**< 在LCUI退出时调用的函数 */ + LCUI_Queue tasks; /**< 程序的任务队列 */ + LCUI_Queue events; /**< 事件队列 */ + LCUI_Queue widget_lib; /**< 部件类型库 */ + LCUI_Sleeper mainloop_sleeper; /**< 用于决定主循环是否睡眠 */ + LCUI_Mutex task_mutex; /**< 任务互斥锁,当运行程序任务时会锁上 */ } LCUI_App; /**********************************************************************/