Commit Graph

82 Commits

Author SHA1 Message Date
Andy Pan af70ed0660 🎏Fix a bug where invokers get stuck in waiting idle workers 2019-08-18 02:45:32 +08:00
Andy Pan 61660e2109 📚Refactor the blocking logic in retrieveWorker function 2019-07-27 13:08:09 +08:00
Andy Pan 51c0008356 🐞Fix a bug that blocks getting worker from pool 2019-07-27 12:05:44 +08:00
Andy Pan 71faec8c1a ☄️Rename the function with the more applicable name 2019-07-26 23:52:05 +08:00
anteoy 3e1c7a03a5 optimize memory allocation and add the log of panic stack 2019-07-26 23:22:24 +08:00
Andy Pan f447bf104a
📝Fix the type error 2019-07-26 16:11:26 +08:00
Andy Pan 9eb91a4ae0 📝Optimize the logic when cleaning up expired workers 2019-07-26 14:14:58 +08:00
Andy Pan d6076c09aa 🙄 Improvement in `periodicallyPurge` 2019-04-14 11:30:19 +08:00
Andy Pan 00294fd50b 😏 Optimization of the structure and style 2019-04-14 11:08:06 +08:00
Andy Pan 05fbdb8d5b 🎭 Fix race error 2019-04-14 11:08:06 +08:00
Andy Pan aa7dd6f8cc 🦖 Develop a more graceful release 2019-04-14 11:08:06 +08:00
Andy Pan 96348a39f5 🐳 Switch function name from Serve to Invoke 2019-02-19 20:16:14 +08:00
Andy Pan 64b763c558 🦠 Adapt code for explicit functions 2019-02-02 10:36:40 +08:00
Andy Pan 91377c898b 🦅 Fix a bug when using sync.Pool 2019-01-27 05:10:13 +08:00
Andy Pan 5c666692e9 🐬 Code logic improvement in pool.retrieveWorker 2019-01-27 04:25:36 +08:00
Andy Pan 689d74c63b Refactor about the synchronous lock 2019-01-27 04:05:58 +08:00
Andy Pan 908553139c 🐬 Performance improvement: use sync.Pool to cache active workers 2019-01-27 00:26:24 +08:00
Andy Pan 90f672b9d5 update 2019-01-26 21:45:49 +08:00
Andy Pan f8d71bb276 🐯 Refactor variable "release" with atomic operation 2019-01-26 15:29:05 +08:00
Andy Pan b091435432 🐲 An optimization in worker channel 2019-01-26 14:32:12 +08:00
Andy Pan c829c6f622 🐶 Replace the type of variable "release" with bool type 2019-01-26 13:45:00 +08:00
Andy Pan e15105fd84 🚗 Reduce a blank line 2019-01-26 12:29:07 +08:00
Andy Pan d3bcc5d10b 🐳 Use the nil of chan to indicate the pool closed or not 2019-01-26 12:26:26 +08:00
Andy Pan b6e43aeee3 🐯 Optimize code comments 2019-01-25 22:01:25 +08:00
Cholerae Hu 9158bd3702 feature: add PanicHandler
Signed-off-by: Cholerae Hu <choleraehyq@gmail.com>
2019-01-22 13:41:33 +08:00
Andy Pan 4320708756 supplement annotations 2018-12-07 01:11:54 +08:00
Andy Pan 639f55c4c9
Merge pull request #19 from zplzpl/hotfix/tickerStop
Possible memory leak because of Ticker
2018-12-01 23:49:31 +08:00
Andy Pan d8c168b198 remove useless return value from pool function 2018-12-01 19:22:05 +08:00
Andy Pan d052cf95e1 add some annotations 2018-12-01 18:41:42 +08:00
unknown e7bacd0f12 Possible memory leak because of Ticker 2018-11-19 10:57:53 +08:00
SimePel 5ed168767a remove another one useless if statement 2018-10-02 08:18:34 +07:00
AndyPan 1b62696050 add comments for waiting to get a idle worker 2018-09-30 09:46:56 +08:00
AndyPan e538683d3f add comments 2018-09-30 09:41:47 +08:00
AndyPan e8ccc8ecca format 2018-09-30 09:40:33 +08:00
liyonglion 1846b4392a 解决竞争锁导致bug 2018-09-29 14:58:58 +08:00
liyonglion 8ecd5078ac 解决死锁问题 2018-09-29 10:19:17 +08:00
andy pan e25a58c9f3 optimization for cleaning workers 2018-08-29 10:02:41 +08:00
andy pan 8556a67f0f fixed workers leak 2018-08-29 09:53:07 +08:00
andy pan 50918eb4a9 update 2018-08-08 18:13:50 +08:00
andy pan e99d428a5f fixed #7 2018-08-08 18:08:06 +08:00
andy pan 62fc58f047 fixed 清理过期协程报错 #7 2018-08-08 17:22:40 +08:00
Andy Pan 7a2f4e4681 add more comments 2018-08-04 11:12:06 +08:00
Andy Pan 4927155de3 fixed issue #6 2018-08-03 21:15:11 +08:00
Andy Pan 1444008b67 rename methods 2018-08-03 19:28:46 +08:00
andy pan 39951bd2f5 format codes 2018-07-31 11:05:48 +08:00
andy pan 59ad1fa56c optimization for structure 2018-07-31 11:05:05 +08:00
andy pan 042109890a make some methods unexported 2018-07-31 11:03:41 +08:00
barryz 83042d7095 pre-allocate the capacity of the worker list 2018-07-25 22:28:11 +08:00
Andy Pan 634682856f Merge branch 'develop' 2018-07-24 22:30:37 +08:00
Andy Pan a326530368 rename the monitorAndClear function 2018-07-21 18:50:18 +08:00