EfveZombie
5eab3d7e22
lua-skynet: lerror 格式符使用 "%*s", 节省一次 strlen ( #2051 )
...
* lua-skynet: lerror 格式符使用 "%*s", 节省一次 strlen
* make skynet_strdup/skynet_strndup static, remove skynet_asprintf/skynet_vasprintf
---------
Co-authored-by: efve.zff <efve.zff@alibaba-inc.com >
2025-05-21 17:49:34 +08:00
子熏
223bd599ba
修复设置 callback导致的crash问题 ( #1726 )
...
* fix set callback in resolve _cb
* 调整注释
* 使用预处理callback 来解决引用问题
* add cb_pre and forward_pre
* delete precb_context
* format tab
---------
Co-authored-by: zixun <lb151450@alibaba-inc.com >
2023-03-29 10:42:31 +08:00
云风
e37eb3cba0
Callback ( #1571 )
...
* Use independent thread for callback
* bugfix: use new cb_ctx when changing callback
2022-04-12 11:11:08 +08:00
Cloud Wu
0ddd938400
Clear callback function in main thread
2022-04-12 10:08:07 +08:00
coder
c84f7354ff
删除多余snlua定义 ( #1564 )
2022-04-02 16:06:04 +08:00
云风
eaa60ca8dd
Update to lua 5.4 ( #1174 )
...
* update to lua 5.4.0-rc1
* remove LUA_ERRGCMM
* use age bits for shared
* remove unused lbitlib.c
* use luaV_fastget
* fix #1174
* suspend函数tailcall优化
* 防止没有session导致未调用suspend
* luaH_setint check shared (#1184 )
* set LUA_GCGEN by default
* fix #1174 (#1186 )
checkshared in sweeplist
* update to lua 5.4 rc2
* update to lua 5.4 rc4
* move skynet.profile into snlua
* Use lua_sethook to interrupt tight loops
* remove lua_checksig
* critical condition for signals
* update to lua 5.4 released
* lua 5.4 bugfix
* update lua bugfix
* fix lua_sharestring (#1224 )
* update lua
* update lua 5.4
* update README
* add skynet.select
* add test
* test error & discard
* yield session
* request error has no error message
* add timeout to skynet.select
* bugfix
* for lua 5.4
* new version
* bugfix
* bugfix
* use if instead of while
* make local
* yield in select for
* update lua 5.4.1
* change lua version (#1245 )
Co-authored-by: xiaojin <xiaojin@onemt.com.cn >
* update lua version number
Co-authored-by: hong <hongling0@gmail.com >
Co-authored-by: hong <hongling-0@qq.com >
Co-authored-by: 风---自由 <996442717qqcom@gmail.com >
Co-authored-by: xiaojin <xiaojin@onemt.com.cn >
2020-10-10 13:36:59 +08:00
Cloud Wu
7e57e498f6
remove dead_service table, address may reused
2018-10-08 15:44:12 +08:00
Cloud Wu
16d8f4c774
cleanup
2018-06-08 10:23:36 +08:00
Cloud Wu
596c77afcd
trace bugfix
2018-05-26 17:17:20 +08:00
Cloud Wu
e53d985c4f
add skynet.trace()
2018-05-26 16:26:50 +08:00
Cloud Wu
a9852273cb
add addresscommand
2018-04-17 10:47:41 +08:00
Cloud Wu
6fa241453c
redirect support alloc session
2017-04-07 11:11:39 +08:00
Cloud Wu
6170346da2
add LUAMOD_API
2017-03-16 15:24:11 +08:00
Cloud Wu
249ffb9362
add skynet.stat() to get cpu cost and message count
2016-10-26 17:43:52 +08:00
Cloud Wu
a6299a0748
optimize skynet.error
2016-05-06 20:10:11 +08:00
Cloud Wu
2252409eaa
add skynet_now() for 64bit time
2015-11-16 19:48:38 +08:00
Cloud Wu
a38a3140dd
error when send to address 0
2015-08-14 17:32:59 +08:00
Cloud Wu
6fa436e8ff
add core.intcommand , See Issue #321
2015-08-10 22:06:36 +08:00
David Feng
4718a12668
typo fix
2015-03-04 15:22:38 +08:00
Cloud Wu
93da2dbfc9
use integer for service address
2015-01-21 18:54:05 +08:00
Cloud Wu
c7b5015e10
update to lua 5.3, remove lua unsigned api
2015-01-05 16:25:42 +08:00
Cloud Wu
f9438461eb
check dest type
2014-08-18 16:44:19 +08:00
Cloud Wu
978e010e67
add cluster.proxy and cluster.ncall
2014-08-13 17:49:30 +08:00
Cloud Wu
0954a906f4
skynet.redirect support string address
2014-08-11 15:29:48 +08:00
Cloud Wu
ce5adba5b2
add skynet.response for delay response
2014-07-30 12:10:30 +08:00
Cloud Wu
3cadd29796
don't throw error when destination address is invalid
2014-06-24 19:32:15 +08:00
Cloud Wu
9937081854
Redesign harbor/master/dummy service
2014-06-21 17:01:59 +08:00
Cloud Wu
ad9898a209
add module skynet.harbor
2014-06-19 15:43:41 +08:00
Cloud Wu
d16159c166
add lua loader
2014-04-29 19:59:04 +08:00
Cloud Wu
bd3aa3f3c5
remove service_lua.h
2014-04-28 15:29:15 +08:00
Cloud Wu
d568e54c63
delete unused feature : group/localcast/forward, etc
2014-04-18 14:25:36 +08:00
Cloud Wu
58aa7556a5
rewrite makefile, and remove luacode cache.
2014-03-26 15:13:30 +08:00
Cloud Wu
8a8353458c
bugfix: Issue #77
2014-03-26 11:04:25 +08:00
云风
6ba28cd442
Do not timing response session
2014-02-27 18:19:55 +08:00
云风
c1e6737711
timing remote call
2014-02-23 17:13:58 +08:00
云风
48f6d42264
remove feature: remote object. Issue #58
2013-12-16 11:05:49 +08:00
云风
c972b647bd
error on call an invalid address
2013-09-18 17:41:25 +08:00
云风
5feaf9f593
error on untraced time
2013-09-18 16:55:30 +08:00
云风
e5e73c2efe
return 0 when send to an invalid address
2013-09-18 16:42:23 +08:00
云风
ed09f28481
function:current time
2013-09-18 16:14:50 +08:00
云风
7263b3d0f9
trace throw error instead of assert in C
2013-09-16 13:01:37 +08:00
云风
36676afc03
Never throw error when sending message to invalid address
2013-09-12 16:22:49 +08:00
云风
1b4b46d271
add skynet.context_ptr() & noneblocking socket.close
2013-07-29 21:24:57 +08:00
云风
0ffd9b8b8e
bugfix: typo
2013-06-20 17:01:17 +08:00
Yecheng Fu
5eb87dc769
_POSIX_TIMERS & _POSIX_THREAD_CPUTIME 在 unistd.h
...
头文件定义,但并未包含。之前写法不正确,可以工作只是巧合。
现改为,默认使用 clock_gettime,当为 Max OSX 平台时,使用兼容方法。
2012-12-20 16:25:20 +08:00
Yecheng Fu
655a2b6acc
convert spaces into tab
...
keep convention
2012-11-27 20:13:52 +08:00
Yecheng Fu
8f29655d25
compiles on macosx
2012-11-27 20:07:50 +08:00
云风
40d2f89443
reload snlua service
2012-10-27 22:48:38 +08:00
云风
4f6c4c0724
drop invalid session id in trace
2012-09-29 16:38:33 +08:00
云风
3c460e3c98
console red
2012-09-27 15:06:39 +08:00