pthreads-ffi:基于C pthreads的LuaJIT线程系统

时间:2021-06-14 22:25:01
【文件属性】:
文件名称:pthreads-ffi:基于C pthreads的LuaJIT线程系统
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-14 22:25:01
Lua pthreads-ffi 基于 C pthreads 的 LuaJIT 线程系统。 注意:写完之后发现也存在。 示例用法: require ' ../pthreads ' print ( multithread { print = true , time = true , nthreads = 10 , globals = { sum = 0 , }, fname = ' hello ' , f = [[ function(id) sum = sum + id end ]] , }. sum )
【文件预览】:
pthreads-ffi-master
----pthreads()
--------cdefs.lua(1KB)
--------utils.lua(1KB)
--------init.lua(2KB)
----pthreads-scm-1.rockspec(538B)
----examples()
--------thread_test2.lua(219B)
--------thread_test3.lua(227B)
--------no_thread_test.lua(193B)
--------thread_test.lua(461B)
----README.md(403B)

网友评论