Commit Graph

76 Commits

Author SHA1 Message Date
zhengshuxin
12006e2ff1 shared stack mode can be selected by users 2022-04-08 07:32:06 +08:00
zhengshuxin
f3ff13cc37 add fiber attr to control if using share stack when create one fiber. 2022-04-07 23:48:05 +08:00
zhengshuxin
cadde6f996 add acl_fiber_get_shared_stack_size() 2022-04-01 14:39:54 +08:00
zhengshuxin
49d4f2d5ce The fiber module has supported shared stack mode to decrease memory usage for many cocurrent clients. 2022-03-30 19:11:25 +08:00
郑树新
dbdcfb5511 add socket control for connecting server with timeout in non-blocking 2022-01-22 09:44:28 +08:00
郑树新
8b50e80af3 optimize DNS of fiber for windows 2021-09-08 00:17:57 +08:00
郑树新
e0601e582f test some fiber module on windows 2021-08-23 18:41:23 +08:00
郑树新
9d3f6d5cfd test API hook for fiber module on Windows platform. 2021-08-22 23:15:38 +08:00
郑树新
2d04980910 optimizing fiber module 2021-08-18 16:07:35 +08:00
zhengshuxin
6b7ae7b883 the socket of one fiber can be closed of another fiber 2021-01-29 13:34:57 +08:00
shuxin   zheng
5a4ae5b475 don't use _WINDLL for win32/win64 platform 2020-11-05 16:05:47 +08:00
郑树新
3cd10f87a1 build ok by vc 2020-10-19 22:25:35 +08:00
root
72a5287da5 add memory using debug info. 2019-08-16 18:17:11 +08:00
郑树新
5e8335f011 build ok for windows. 2019-08-15 15:25:28 +08:00
zhengshuxin
a0b258eb28 test gettimeofday ok 2019-07-31 16:32:17 +08:00
zhengshuxin
9697f95b8f Revert "All source code have been changed to use utf8 charset with BOM header!"
This reverts commit 15d999759e.
2019-07-28 10:31:56 +08:00
zsxxsz
15d999759e All source code have been changed to use utf8 charset with BOM header! 2019-07-27 22:44:32 +08:00
zhengshuxin
123328c1af remove unused comments 2019-06-24 13:06:06 +08:00
zhengshuxin
480a8c9403 optimise fiber 2019-01-02 11:12:55 +08:00
zsx
0004373bcd fixed bugs of acl_fiber_cond_timedwait in acl_fiber_cond.c 2018-12-25 11:32:42 +08:00
zsx
d0d51ec6d1 build for macos 2018-12-07 13:50:42 +08:00
zsx
4db127ec9f optimize fiber_cond and fiber 2018-11-30 18:26:46 +08:00
zsx
fb271fd104 format to DOS style. 2018-11-30 14:38:22 +08:00
zsx
2033c94414 add fiber_cond.c 2018-11-28 15:51:33 +08:00
zsx
9cd475d83f add fiber_cond.c 2018-11-28 15:51:22 +08:00
zhengshuxin
f7af753d9e add one flag when creating fiber_event 2018-11-24 11:49:18 +08:00
zsxxsz
96fd5bf486 build ok for windows 2018-10-31 22:14:09 +08:00
zsx
46f12d39ca using libfiber.h for C and libfiber.hpp for C++ 2018-08-19 23:03:39 +08:00
zsx
e4a342b5f4 merge from libfiber 2018-08-19 22:47:26 +08:00
zhengshuxin
e5b554930b some samples of fiber should be compiled by c++11 compiler. 2018-08-10 21:02:14 +08:00
郑树新
02ba7723e0 build ok on vc2013 2018-03-05 11:50:22 +08:00
zsx
63f9ac04f8 merge from libfiber 2018-03-05 11:05:05 +08:00
zsxxsz
89b15923d6 add lost header 2018-02-10 15:09:25 +08:00
zsx
3c46adddb3 fiber_server: support setting schedule event type in configure. 2018-02-05 10:16:52 +08:00
zsxxsz
2e38ce1365 fiber schedule process can be triggered automaticly. 2018-01-28 12:34:23 +08:00
郑树新
49a92e9348 fiber io can also stop automaticly when no IO and no timers been set. 2018-01-22 18:38:50 +08:00
zsxxsz
768d30a56c fiber for windows OS can use IO read/write with timed waiting by using select/poll;
ACL_VSTREAM's NETWORK IO read/write interface can be hooked by user's IO API.
2018-01-14 22:54:44 +08:00
zsx
f58d187421 compiling fiber on Linux 2018-01-12 22:29:21 +08:00
郑树新
5a45a0d886 win32 message fiber event 2018-01-11 19:13:31 +08:00
zsxxsz
63c9decbbd acl fiber can be used on win32 GUI messsage 2018-01-11 00:11:15 +08:00
zsxxsz
3543cdda46 prepare for win gui message fiber 2018-01-07 23:22:38 +08:00
zhengshuxin
88b9f98214 fiber compiling: fixed some warning on FreeBSD 2017-09-22 16:58:18 +08:00
zsx
c4d9790d5f fiber event: using select as event engine internal for unix/windows 2018-01-01 22:50:11 +08:00
zsxxsz
fcb36493b1 fiber: rewrite fiber's framework for imgrating to windows 2017-12-30 23:30:30 +08:00
zhengshuxin
06ce51b912 changes "\r\n" to "\n" 2017-09-22 12:27:21 +08:00
zsx
bb49d5c617 move some API from fiber's internal to outer for using easily 2017-12-24 21:53:11 +08:00
zsx
f1947a43d6 replace fiber module with the new libaray. 2017-12-20 23:30:33 +08:00
zsx
450d06a66c fier: add acl_fiber_event_trywait 2017-11-24 11:10:44 +08:00
zsx
173e43bb47 fiber: rename acl_fiber_event_signal to acl_fibrer_event_notify. 2017-11-24 10:42:10 +08:00
zsx
41d1e116d1 fiber: add fiber_event.c which can support mutex lock between fibers and threads with very high performance. 2017-11-23 12:23:17 +08:00