|
XWOS API
4.0
XWOS C/C++ API参考手册
|
XWLUA库:XWOS内核 更多...
#include <xwos/standard.h>#include <xwos/osal/lock/mtx.h>#include <xwos/osal/sync/sem.h>#include <xwos/osal/sync/cond.h>#include <xwos/osal/sync/flg.h>#include <xwos/osal/sync/br.h>#include <xwos/osal/sync/sel.h>#include "xwmd/vm/lua/src/lauxlib.h"
函数 | |
| void | xwlua_mtx_register (lua_State *L, const char *name, struct xwos_mtx *mtx) |
| 注册互斥锁对象 | |
| void | xwlua_sem_register (lua_State *L, const char *name, struct xwos_sem *sem) |
| 注册信号量对象 | |
| void | xwlua_cond_register (lua_State *L, const char *name, struct xwos_cond *cond) |
| 注册条件量对象 | |
| void | xwlua_flg_register (lua_State *L, const char *name, struct xwos_flg *flg) |
| 注册事件标志对象 | |
| void | xwlua_br_register (lua_State *L, const char *name, struct xwos_br *br) |
| 注册线程栅栏对象 | |
| void | xwlua_sel_register (lua_State *L, const char *name, struct xwos_sel *sel) |
| 注册信号选择器对象 | |
XWLUA库:XWOS内核
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
在文件 xwos.h 中定义.