我的目的是想查看os.time和os.date是引用的C库中的哪个函数,比如是localtime还是localtime_r, 从而确定他们是不是线程安全的函数.我尝试在https://github.com/openresty/lua-nginx-module和https://github.com/openresty/openresty里面搜索关键字,但是没有找到. --
我的目的是想查看os.time和os.date是引用的C库中的哪个函数,比如是localtime还是localtime_r, 从而确定他们是不是线程安全的函数.我尝试在https://github.com/openresty/lua-nginx-module和https://github.com/openresty/openresty里面搜索关键字,但是没有找到.
除了到官方tar包里找,GitHub上也有LuaJIT官方的镜像。你要找的函数在这里:https://github.com/LuaJIT/LuaJIT/blob/master/src/lib_os.c在 2016年10月5日星期三 UTC+8上午8:57:37,项楠写道:我的目的是想查看os.time和os.date是引用的C库中的哪个函数,比如是localtime还是localtime_r, 从而确定他们是不是线程安全的函数.我尝试在https://github.com/openresty/lua-nginx-module和https://github.com/openresty/openresty里面搜索关键字,但是没有找到.