XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
xwos.h
浏览该文件的文档.
1
21#ifndef __xwem_vm_lua_xwlua_xwos_h__
22#define __xwem_vm_lua_xwlua_xwos_h__
23
24#include <xwos/standard.h>
25#include <xwos/osal/lock/mtx.h>
26#include <xwos/osal/sync/sem.h>
27#include <xwos/osal/sync/cond.h>
28#include <xwos/osal/sync/flg.h>
29#include <xwos/osal/sync/br.h>
30#include <xwos/osal/sync/sel.h>
31#include "xwem/vm/lua/src/lauxlib.h"
32
44void xwlua_mtx_register(lua_State * L, const char * name,
45 struct xwos_mtx * mtx);
46
53void xwlua_sem_register(lua_State * L, const char * name,
54 struct xwos_sem * sem);
55
62void xwlua_cond_register(lua_State * L, const char * name,
63 struct xwos_cond * cond);
64
71void xwlua_flg_register(lua_State * L, const char * name,
72 struct xwos_flg * flg);
73
80void xwlua_br_register(lua_State * L, const char * name,
81 struct xwos_br * br);
82
89void xwlua_sel_register(lua_State * L, const char * name,
90 struct xwos_sel * sel);
91
96#endif /* xwem/vm/lua/xwlua/xwos.h */
void xwlua_sel_register(lua_State *L, const char *name, struct xwos_sel *sel)
注册信号选择器对象
void xwlua_cond_register(lua_State *L, const char *name, struct xwos_cond *cond)
注册条件量对象
void xwlua_mtx_register(lua_State *L, const char *name, struct xwos_mtx *mtx)
注册互斥锁对象
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_sem_register(lua_State *L, const char *name, struct xwos_sem *sem)
注册信号量对象
操作系统抽象层:互斥锁
XWOS API:线程栅栏
Definition br.h:81
XWOS API:条件量对象
Definition cond.h:91
XWOS API:事件标志对象
Definition flg.h:93
XWOS API:互斥锁
Definition mtx.h:82
XWOS API:信号选择器对象
Definition sel.h:81
XWOS API:信号量对象
Definition sem.h:95
操作系统抽象层:线程栅栏
操作系统抽象层:条件量
操作系统抽象层:事件标志
操作系统抽象层:信号选择器
操作系统抽象层:信号量
XWOS的标准头文件