Commit Graph

362 Commits

Author SHA1 Message Date
zhengshuxin
0c1a9d9484 test demo 2023-01-28 15:46:32 +08:00
zhengshuxin
70e825f513 Rename id() to fiber_id() in fiber.hpp 2023-01-17 17:18:56 +08:00
zhengshuxin
5927fddb41 Add demo test the performance ACL_FIBER_LOCK vs ACL_FIBER_MUTEX 2023-01-12 22:30:24 +08:00
zhengshuxin
3ef3fa8128 Add C++ API for fiber mutex deadlock checking. 2023-01-11 22:29:45 +08:00
zhengshuxin
758dd3852a Add stacktrace for fiber cpp lib. 2023-01-11 10:22:33 +08:00
zhengshuxin
0864514ae4 Build demos on MacOS 2023-01-11 00:29:44 +08:00
zhengshuxin
fb02991e32 Use SNPRINTF macro for multiple platforms. 2023-01-11 00:24:44 +08:00
zhengshuxin
e4b0b89bf4 The deadlock function is ok. 2023-01-11 00:19:09 +08:00
zhengshuxin
e5c61d1130 Add deadlock checking for ACL_FIBER_MUTEX 2023-01-10 18:00:34 +08:00
shuxin   zheng
408c6e0db0 acl_fiber_stacktrace() can't be used on MacOS because libunwind don't support MacOS. 2023-01-03 15:47:19 +08:00
zhengshuxin
0732c5dd06 We can get any fibers' stack now. 2023-01-03 15:33:41 +08:00
zhengshuxin
eae6be59ed Optimize sync_timer.c by using the global timer. 2022-12-28 00:01:44 +08:00
zhengshuxin
d2ac79798a Optimize fiber's timer module for performance improvement by using AVL tree. 2022-12-27 16:20:47 +08:00
zhengshuxin
79ee418c14 test fiber_cond 2022-12-25 16:20:13 +08:00
zhengshuxin
7a8694e367 Fixed one bug in poll.c for closing another fiber's fd 2022-12-20 15:34:47 +08:00
zhengshuxin
afaf06e041 add another more efficient sendfile's implement than by using splice. 2022-12-12 02:36:11 +08:00
zhengshuxin
8901830536 test fiber_stop demo 2022-12-19 15:00:03 +08:00
zhengshuxin
cf53a8add4 add one demo. 2022-12-11 21:31:18 +08:00
郑树新
75526ace1a build ok on windows 2022-12-17 19:20:20 +08:00
zhengshuxin
b4ef412762 add one demo for test waiting fiber with fiber_tbox 2022-12-16 21:57:41 +08:00
zhengshuxin
a77777c6f9 add dead lock test 2022-12-16 20:29:03 +08:00
zhengshuxin
5b6d473d7b test demo 2022-12-16 12:00:57 +08:00
zhengshuxin
a5ea885bb1 test fiber_tbox 2022-12-09 18:32:29 +08:00
zhengshuxin
dec66530a2 fixed one bug that lseek can't distinguish eventfd and file fd, so we use another method to do it. 2022-12-08 16:31:02 +08:00
zhengshuxin
970c19e531 test ... 2022-12-08 14:27:01 +08:00
zhengshuxin
2d66b48b75 add one demo to test multiple threads and fibers writing log with the same fd 2022-12-06 21:57:19 +08:00
zhengshuxin
69fcff4150 test demo 2022-12-01 19:42:48 +08:00
zhengshuxin
d0f1050531 optimize and test io_uring for closing and canceling IO processes. 2022-11-30 13:06:31 +08:00
zhengshuxin
4250115464 add more comments and add more safety codes for close fd in no-fiber mode. 2022-11-28 23:32:26 +08:00
zhengshuxin
ea42500c68 optimize and test redis client pipeline mode with the new fiber_tbox with less eventfd. 2022-11-21 22:58:52 +08:00
zhengshuxin
8353981a96 optimize all box classes and redis_client_pipeline can create box by virtual create function. 2022-11-21 20:27:09 +08:00
zhengshuxin
9cac39c265 optimize and test fiber_cond, fiber_mutex on io_uring 2022-11-19 19:15:28 +08:00
zhengshuxin
1f2f79c192 optimize fiber_mutex by using context switch when the owner and waiter are in the same thread 2022-11-18 16:47:10 +08:00
郑树新
c2537bf2f7 test ... 2022-11-17 18:11:33 +08:00
shuxin   zheng
a4ea9e8129 optimize and test fiber_mutex, fiber_cond on macos 2022-11-17 11:24:56 +08:00
zhengshuxin
ce0a0c6468 testing ... 2022-11-16 23:18:22 +08:00
shuxin   zheng
ed6e04e63b decrease the size of ACL_FIBER 2022-11-16 18:13:08 +08:00
zhengshuxin
eb9739942e optimize and test fiber_mutex, fiber_cond 2022-11-16 15:41:33 +08:00
zhengshuxin
d0cf77f92c test fiber_cond 2022-11-13 12:39:51 -05:00
zhengshuxin
652008e29a optimize and test fiber_mutex, fiber_cond 2022-11-13 12:00:09 -05:00
zhengshuxin
14f0900b73 optimize ... 2022-11-14 05:43:55 -05:00
zhengshuxin
0ad17e5048 test fiber_cond ... 2022-11-14 02:56:57 -05:00
zhengshuxin
bbafef19ad optimize and test fiber_mutex.c 2022-11-12 21:15:51 -05:00
zhengshuxin
d4981e0a9a test ... 2022-11-10 10:12:10 -05:00
zhengshuxin
3d8a6a7879 optimize and test fiber_mutex ... 2022-11-09 09:09:00 -05:00
zhengshuxin
ddaeb6ed99 add fiber_mutex test 2022-11-08 08:52:39 +08:00
zhengshuxin
4d81f0fe5f adding fiber_mutex ... 2022-11-07 18:28:28 +08:00
zhengshuxin
fa5d46f3b3 test 2022-11-02 10:28:00 -04:00
zhengshuxin
aef12af92e test file copy with io_uring 2022-10-31 05:51:34 -04:00
zhengshuxin
b78e958dea test splice, pread, pwrite in multiple coroutines in multiple threads 2022-10-31 04:54:43 -04:00