94 Commits

Author SHA1 Message Date
EfveZombie
7386688320 skynet_context: skynet_context_new 改为返回 handle 避免调用者拿到悬垂指针 (#2095)
* skynet_context: skynet_context_new 改为返回 handle 避免调用者拿到悬垂指针

* 推迟 skynet_handle_grab(logger_handle) 到 bootstrap 失败阶段

---------

Co-authored-by: efve.zff <efve.zff@alibaba-inc.com>
2025-10-14 18:00:58 +08:00
fanyh
1ba381a1c2 skynet_error output abnormal log add error tag (#2039) 2025-03-18 20:14:45 +08:00
navi
88df42a60f fix message数量过多导致int溢出 (#2014)
Co-authored-by: 角弓 <jiaogong.lzh@alibaba-inc.com>
2024-12-26 17:29:48 +08:00
yzj12138
9e000da81f 修复执行skynet.exit后别的服务call有概率卡死 (#1846)
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
2024-01-03 18:14:17 +08:00
涵曦
448fe14b9e fix comment: profile default is on. (#1581) 2022-04-22 16:35:46 +08:00
涵曦
2d42adb739 fix typo: remove duplicate include (#1570) 2022-04-10 15:35:46 +08:00
Cloud Wu
d1ce950dc1 Fix #1552 2022-03-19 07:10:52 +08:00
子熏
2e06706323 fix atomic of macosx (#1320) See #1317
Co-authored-by: zixun <lvzxiun@gmail.com>
2021-01-11 17:41:03 +08:00
Cloud Wu
bc2fba560f CAS expected should not be _Atomic type, #1317 2021-01-11 17:10:26 +08:00
云风
b164e3a8a9 use stdatomic (#1317) 2021-01-11 10:54:34 +08:00
Cloud Wu
08e56f4316 fix #793 2018-10-11 17:38:49 +08:00
Cloud Wu
7e57e498f6 remove dead_service table, address may reused 2018-10-08 15:44:12 +08:00
Cloud Wu
0846a6533d fix a legacy problem. make harbor service more stable 2018-02-12 18:07:16 +08:00
Cloud Wu
ffe5de468e add skynet.stat 'time' 2016-10-26 18:01:22 +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
2252409eaa add skynet_now() for 64bit time 2015-11-16 19:48:38 +08:00
Cloud Wu
eb587c63d3 fix issue #327 2015-08-21 19:42:09 +08:00
Cloud Wu
bf8f9b8654 add pthread lock 2015-08-13 21:00:20 +08:00
Cloud Wu
aff73cbed7 Increase message size 16M(24bit) limit to 56bit on 64bit arch 2015-08-05 12:23:35 +08:00
Harry
d3ac522dc6 typo in type of variable 2015-06-05 19:04:43 +08:00
Cloud Wu
a0ffff8ad6 add module signal and hack lua to support it :) 2015-03-11 15:10:53 +08:00
Cloud Wu
954625a530 fix issue #190 2014-10-28 16:48:35 +08:00
Cloud Wu
01e1a6aafa fix issue #189 2014-10-28 16:04:01 +08:00
Cloud Wu
4a8bf4f39a bugfix: harbor service should not release before others 2014-10-10 20:13:53 +08:00
Cloud Wu
2f6bfe9104 add message overload warning 2014-10-08 22:42:01 +08:00
Cloud Wu
16f63df0c3 add message log 2014-08-22 15:30:35 +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
8e09fad233 remove unused skynet_context_init 2014-07-29 10:31:45 +08:00
Cloud Wu
3bc7304609 skynet.localname return nil when the name not exist 2014-07-13 19:37:08 +08:00
Cloud Wu
35775685c3 add worker dispatch weight 2014-07-08 19:56: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
db952dc658 report too long message error, instead of assert 2014-06-24 19:22:18 +08:00
Cloud Wu
1a44bfb09a launch logger in C 2014-06-19 22:12:29 +08:00
Cloud Wu
ad9898a209 add module skynet.harbor 2014-06-19 15:43:41 +08:00
Cloud Wu
f92fc153e4 bugfix: in freebsd, libthr may call calloc before globalinit 2014-06-04 02:51:29 +00:00
Cloud Wu
e1a72bd820 optimize message dispatch 2014-05-26 13:40:49 +08:00
Cloud Wu
866e59811e remove unused mq api 2014-05-26 13:23:57 +08:00
Cloud Wu
7dff50d21d merge pr 103 2014-05-12 11:04:58 +08:00
Cloud Wu
915c28c522 drop message not report to skynet_error at all 2014-05-06 15:06:59 +08:00
Cloud Wu
a700abcdb3 remove skynet.watch, move simplemonitor to examples 2014-05-06 14:57:01 +08:00
Cloud Wu
6a6d9db54d remove blockcall 2014-05-06 13:41:44 +08:00
Cloud Wu
bad9a5fc54 use pthread_getspecific instead of __thread 2014-04-28 15:31:38 +08:00
Cloud Wu
75a28b0fcc use skynet malloc api directly 2014-04-22 12:26:08 +08:00
Cloud Wu
7d835d222b use macro for replace malloc api (see skynet_malloc.h) 2014-04-18 22:38:18 +08:00
Cloud Wu
ac1a0a4c99 malloc hook for jemalloc and c memory info dump 2014-04-18 17:38:18 +08:00
Cloud Wu
cfbd68b85a check callback return value for reserve the message 2014-04-18 14:25:36 +08:00
Cloud Wu
d568e54c63 delete unused feature : group/localcast/forward, etc 2014-04-18 14:25:36 +08:00
云风
0505b88f5e add debug_console service 2014-02-25 20:04:50 +08:00
云风
69e179a52e add skynet command MQLEN for debug 2014-02-21 15:03:20 +08:00