lua-threadpool:更快、更简单、更强大的lua协程库

时间:2024-06-23 18:43:35
【文件属性】:

文件名称:lua-threadpool:更快、更简单、更强大的lua协程库

文件大小:6KB

文件格式:ZIP

更新时间:2024-06-23 18:43:35

Lua

lua 线程池 更快、更简单、更强大的lua协程库 epoll Threadpool(依赖fend.epoll, luajit) 例子 local dispatcher = require " fend.epoll " local epoll = dispatcher () local threadpool = require ' threadpool_ext ' threadpool. init ({ logger = { warn = print, error = print, debug = print }, growing_thread_num = 10 , time_service = epoll, }) local env_seq = 2313141232 local thread_id pri


【文件预览】:
lua-threadpool-master
----test.lua(3KB)
----threadpool_ext.lua(3KB)
----beachmark.lua(865B)
----threadpool.lua(5KB)
----README.md(4KB)

网友评论