Commit Graph

257 Commits

Author SHA1 Message Date
郑树新
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
zsxxsz
06409bdae4 add winsock lib in event_iocp.c 2018-02-09 23:28:40 +08:00
zsx
4a7a8f830e no debug 2018-02-07 19:19:31 +08:00
zhengshuxin
9ee53a8a5a fiber on FreeBSD with kqueue is OK! 2017-09-23 08:47:25 +08:00
zhengshuxin
4614c7e118 fiber event: fixed possible bug in events 2017-09-22 22:11:51 +08:00
zhengshuxin
7670fca314 compiling for FreeBSD ok 2017-09-22 19:22:26 +08:00
zsx
3c46adddb3 fiber_server: support setting schedule event type in configure. 2018-02-05 10:16:52 +08:00
zsxxsz
a0160d2ea1 fixed some compiling error on vc2012/2013. 2018-02-03 22:35:58 +08:00
zsxxsz
6d9add27bd bugfix in lib_acl: POLLHUP | POLLERR should not be set as input parameters. 2018-02-03 21:27:21 +08:00
郑树新
342f42c38a fiber: support winsock IOCP event. 2018-02-01 18:40:31 +08:00
郑树新
a16c4122d0 fiber: adding iocp event 2018-01-31 19:16:23 +08:00
郑树新
2af5a9307f fiber: adding iocp event 2018-01-31 19:01:04 +08:00
郑树新
2e5a3ab9fd fiber: adding iocp event 2018-01-31 11:55:16 +08:00
zsxxsz
580fdc4f72 fiber event: adding iocp for winsock 2018-01-30 23:45:34 +08:00
郑树新
fa7a71f2fb fiber: add iocp event 2018-01-30 19:57:51 +08:00
郑树新
08f229f494 fiber: add iocp event for windows 2018-01-30 19:57:30 +08:00
zsx
7329f830e9 server_socket supports SO_REUSEPORT on Linux3.x 2018-01-29 23:33:49 +08:00
zsxxsz
2e38ce1365 fiber schedule process can be triggered automaticly. 2018-01-28 12:34:23 +08:00
zsx
3e998cb37a compiline error 2018-01-23 19:51:42 +08:00
zsx
21119f88a0 master_guard: add all info for version 2018-01-23 19:48:45 +08:00
zsx
d384dce04e master_guard: add all info for version 2018-01-23 19:46:45 +08:00
zsxxsz
5fcd7a20c3 select/WSAPoll of Windows disable non SOCKETS been set. 2018-01-22 23:45:00 +08:00
zsxxsz
66c05c16cb fiber for windows: client2 and server2 run very well:) 2018-01-22 22:01:12 +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
zsx
12fe61726a fiber_io.c: IO fiber can exit automatically when no FD and no timer. 2018-01-22 17:31:00 +08:00
zsxxsz
588c871124 fiber client2 sample can run on Windows. 2018-01-21 15:41:19 +08:00
zsxxsz
de8be9ca0f fiber's event_poll.c can handle POLLERR | POLLHUP | POLLNVAL 2018-01-21 11:40:34 +08:00
zsxxsz
400904dccf add error handling in acl_vstream.c & poll.c when operation timeout;
in fiber_win.c when calling CreateFiberEx, using size as the parameter
dwStackReserveSize;
2018-01-20 21:57:39 +08:00
zsx
310d353114 remove valgrind debug by default in Makefile of fiber 2018-01-19 10:42:22 +08:00
zsxxsz
fe2ff8adb5 when new fiber can't be created on win32, just call msg_fatal 2018-01-18 23:10:34 +08:00
zsx
5391987156 fixed channel.cpp in fiber compiling error 2018-01-18 14:37:06 +08:00
zsx
602128784f fiber sample: add http_request sample 2018-01-17 15:55:10 +08:00
郑树新
d819724c3b fiber performance: improve the messages handling performance in Windows 2018-01-17 14:10:19 +08:00
郑树新
33447005ad add changes.txt into vc project 2018-01-17 13:29:52 +08:00
zsxxsz
e3a50c370d fiber io: incorrect used SET_READABLE 2018-01-16 23:46:42 +08:00
zsxxsz
a2b795a7fe fiber_io fiber can be restarted. 2018-01-16 22:37:23 +08:00
郑树新
4afcac70a0 improve fiber IO performance when using timedwait read/write. 2018-01-16 18:24:13 +08:00
郑树新
a19555d3c2 WinEchodDl's vc2013 project 2018-01-15 12:15:51 +08:00
zsx
bc845a5dcd 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 23:08:04 +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
zsxxsz
c2a2d1b579 building fiber lib and samples are all ok by vc2012 and vc2013 2018-01-13 23:24:45 +08:00
zsxxsz
a3870339ac fiber compiliing on windows 2018-01-13 10:23:13 +08:00
zsx
8d5cf8ee23 fiber event optimise 2018-01-13 10:21:49 +08:00
zsxxsz
ebf0361142 fiber event optimize 2018-01-13 09:37:57 +08:00
zsx
f58d187421 compiling fiber on Linux 2018-01-12 22:29:21 +08:00
郑树新
bc24d1e75a fiber based on win32 gui message 2018-01-12 19:15:08 +08:00
zsxxsz
d108b3750a for win32 gui fiber 2018-01-12 00:28:30 +08:00
郑树新
5a45a0d886 win32 message fiber event 2018-01-11 19:13:31 +08:00
郑树新
e55a183e1e WinEchod: rename class files' name;
win32 message is OK;
2018-01-11 14:19:09 +08:00
zsxxsz
63c9decbbd acl fiber can be used on win32 GUI messsage 2018-01-11 00:11:15 +08:00
郑树新
7f35e9236f acl fiber can now support win32 gui message engine 2018-01-10 17:48:45 +08:00
zsxxsz
c6c268a9f3 add demo 2018-01-09 00:05:28 +08:00
郑树新
2baa98a8fc fixed one bug in bitmap.cpp when calling reset();
adding win32 gui message event for fiber
2018-01-08 15:21:57 +08:00
zsxxsz
a6dee23821 compiling fiber on vc 2018-01-07 23:43:05 +08:00
zsx
f505001cd7 compiling on Linux 2018-01-07 23:30:46 +08:00
zsxxsz
3543cdda46 prepare for win gui message fiber 2018-01-07 23:22:38 +08:00
zsxxsz
945fad8380 add htable into fiber 2018-01-07 23:21:50 +08:00
zsxxsz
78dc911358 add win32 gui message event for fiber 2018-01-07 23:21:14 +08:00
zsxxsz
3a5effa102 prepare for win msg event for windows 2018-01-07 14:40:15 +08:00
zsxxsz
2b9cdae22e add sane_socket in fiber's common module. 2018-01-07 14:33:05 +08:00
zsxxsz
45999c8bba fiber project: add vc2012 and vc2013 projects 2018-01-06 23:18:04 +08:00
郑树新
b71952895b add event_poll into fiber's vc project 2018-01-03 14:04:38 +08:00
zsx
0abfa377f6 fiber event: poll API can be used for fiber's event engine 2018-01-03 14:01:22 +08:00
zhengshuxin
88b9f98214 fiber compiling: fixed some warning on FreeBSD 2017-09-22 16:58:18 +08:00
zhengshuxin
c9e8e0f1d6 fixed one compiling error on FreeBSD 2016-01-14 13:14:36 +08:00
zsxxsz
ceadc40c6f compiling error on freebsd 2018-01-01 22:57:20 +08:00
zsx
c4d9790d5f fiber event: using select as event engine internal for unix/windows 2018-01-01 22:50:11 +08:00
zsxxsz
6051fe8bfe fiber: add event_select 2018-01-01 21:08:27 +08:00
zsxxsz
c7fc99f2d8 fiber for windows can run:) 2018-01-01 00:10:00 +08:00
zsxxsz
be2603b720 fiber: compiling on vc2013 ok 2017-12-31 00:24:15 +08:00
zsx
aaf947d323 fiber: the new framework for Unix/Windows will be ready:) 2017-12-31 00:16:46 +08:00
zsx
b3504502b6 for Linux 2017-12-30 23:39:53 +08:00
zsxxsz
fcb36493b1 fiber: rewrite fiber's framework for imgrating to windows 2017-12-30 23:30:30 +08:00
zsx
7e16c01698 fixed one fiber's compilie error 2017-12-29 11:39:17 +08:00
zsx
ec1465f761 remove debug code in event_kqueue.c 2017-12-28 22:56:24 +08:00
zhengshuxin
06ce51b912 changes "\r\n" to "\n" 2017-09-22 12:27:21 +08:00
zhengshuxin
efae38a4bf fiber: add kqueue event for FreeBSD 2017-09-22 12:26:55 +08:00
zhengshuxin
a418cba784 adding fiber's implement for freebsdd 2016-01-14 13:01:36 +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
0da73b81eb fiber: epoll hook ok 2017-12-23 12:30:13 +08:00
zsx
92aa28a8a0 fiber: fixed one bug in event_prepare() of event.c when iterator the event operations 2017-12-22 22:41:23 +08:00
zhengshuxin
297d264825 fixed compiling warn on gcc4.1 2017-12-22 15:24:35 +08:00
zsx
99d14ba217 add lost files 2017-12-22 15:17:43 +08:00
zsx
f5ccd3a22c fixed build fiber error by xmake 2017-12-21 22:51:00 +08:00
zsx
a94fd0299b fiber's dns module can unloaded automaticly when process exiting 2017-12-21 22:23:07 +08:00
zsx
ce60c66bc7 diable valgrind for fiber's release 2017-12-21 18:56:41 +08:00
zsx
19d13adcf9 new fiber module will be ready:) 2017-12-21 18:55:50 +08:00
zsx
d6addafe44 add UNLIKELY for improving performance 2017-12-21 16:13:09 +08:00
zsx
ab44af95c6 fixed some event problems 2017-12-21 15:46:48 +08:00
zsx
64b6a0eb6d fiber_server.cpp should open REUSEPORT flag when runing alone with multi-threads 2017-12-21 11:23:58 +08:00
zsx
f1947a43d6 replace fiber module with the new libaray. 2017-12-20 23:30:33 +08:00
zsx
9638c50179 fiber: fixed one urgent bug in hook_net.c for hooking poll API 2017-12-19 18:56:47 +08:00
zsx
f65d447815 new event for fiber 2017-12-18 16:57:57 +08:00
zsx
1b164db078 ssl: polarssl_conf's init should not in constructor 2017-12-07 16:24:21 +08:00
zsx
95d67507d5 fiber's compile: fixed one warning when USE_JMP not be defined. 2017-11-30 10:59:25 +08:00
ruki
987385ea6e add xmake.lua 2017-11-30 10:04:15 +08:00
zsx
bc2d7c81c8 fiber: eventfd should be ignored on kernel below 2.6.22. 2017-11-24 15:53:43 +08:00
zsx
71289ca92f fiber_event is ok 2017-11-24 15:24:17 +08:00