Commit Graph

434 Commits

Author SHA1 Message Date
郑树新
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
zsx
ed330843d7 fiber.cpp: closesocket is for winsock 2018-01-31 12:00:56 +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
zsx
a6f74434c6 fiber sample server2: testing schedule automticaly 2018-01-28 17:11:57 +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
zsx
dbc586c33b fiber_server: master_debug configure item should be used other than fiber_log_debug 2018-01-23 16:55:03 +08:00
zsx
52ac1f747b acl_fiber_schedule_stop needn't be called when all IO fibers were finished. 2018-01-22 23:46:58 +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
3b2d58ed59 fiber server2 can run on windows. 2018-01-21 11:39:19 +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
e799a55b9f fiber sample: server5 2018-01-19 19:22:06 +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
7af7f753fb add one fiber sample 2018-01-18 16:07:20 +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
郑树新
0244606e67 remove FIBER_API in channel.hpp for compiling with no error on Windows & Unix 2018-01-16 14:28:42 +08:00
郑树新
0e12675b7b WinEchod use UNICODE charset 2018-01-15 12:22:04 +08:00
郑树新
a19555d3c2 WinEchodDl's vc2013 project 2018-01-15 12:15:51 +08:00
郑树新
fd1cd5df2e add vc2013 project for demo WinEchod of acl fiber. 2018-01-15 11:32:59 +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
郑树新
4843851cbf add FiberSleep class for demo 2018-01-11 18:30:06 +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
郑树新
038dcc9a43 add listener fiber and client fiber 2018-01-10 17:48:22 +08:00
郑树新
e64945edd7 win32 gui fiber sample 2018-01-09 19:02:10 +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
7fced0b33a some charset warning on vc 2018-01-06 23:18:40 +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
zsxxsz
4371535b8e add lost vc project for fiber sample 2018-01-02 21:03:09 +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
zsx
05b485b6c4 fiber: add kqueue of FreeBSD, so acl fiber can support FreeBSD 2017-12-28 17:49:33 +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
068f885d8f fiber's Makefile should mkdir debug automaticlly 2017-12-25 10:29:30 +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
c8fe74f03e fiber: fixed compiling error with cmake 2017-12-23 20:54:08 +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
e1a32b11ad add lost files in fiber 2017-12-21 21:40:17 +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
d91221f939 add valgrind shell 2017-12-21 14:21:38 +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
2b5dcb00e7 add valgrind shell 2017-12-21 10:25:09 +08:00
zsx
2ab420dea0 add valgrind shell 2017-12-21 09:43:39 +08:00
zsx
124ebc564c build fiber cpp lib 2017-12-20 23:33:12 +08:00
zsx
f1947a43d6 replace fiber module with the new libaray. 2017-12-20 23:30:33 +08:00
zsx
f8c5ac970b rename fiber_server.c to fiber_server.cpp and put it into cpp's path 2017-12-20 23:28:17 +08:00
zsx
184b9d11f7 delete unused file in fiber module 2017-12-20 23:21:34 +08:00
zsx
7572f0b18f fiber dns will be ok 2017-12-20 23:01:58 +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
14d4eb2239 new fiber framework will be ready 2017-12-18 23:49:47 +08:00
zsx
f65d447815 new event for fiber 2017-12-18 16:57:57 +08:00
zsx
4b28397af4 fiber event: add new event for fiber 2017-12-17 23:47:39 +08:00
zsx
fe754e6f42 fiber samples/thread_mbox: test multithreads writers 2017-12-15 10:58:46 +08:00
zsx
f0c52f92f1 acl_mbox supports eventfd as notify handle 2017-12-12 14:02:25 +08:00
zsx
1b164db078 ssl: polarssl_conf's init should not in constructor 2017-12-07 16:24:21 +08:00
ubuntu14
42c1eb8b2d polarssl_conf: fixed one bug when loading polarssl library 2017-12-03 14:54:47 +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
zsx
2f81af614b samples: fiber_event's sample changed. 2017-11-24 11:40:01 +08:00
zsx
8fca8bc485 fiber_event: delete unused codes. 2017-11-24 11:27:05 +08:00
zsx
3a290a2718 fiber lock: add comments 2017-11-24 11:25:05 +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
0ee5df1899 fiber: add fiber_event for synchronize between threads and fibers 2017-11-24 10:39:53 +08:00
zsx
acac0ad2f8 fiber_lock: use the new fiber event lock with high performance. 2017-11-23 12:59:24 +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
zsx
27f13c2a13 fiber: add fiber_lock_r 2017-11-23 00:36:15 +08:00
zsx
1d35005fca fiber: add fiber_lock_r which can use in threads + fibers 2017-11-23 00:35:51 +08:00
zhengshuxin
b92f241603 fiber_server: not notify master in non-daemon mode 2017-11-13 21:45:59 +08:00
zhengshuxin
bf5252dd65 fiber: fixed one compiling error on centos5.x 2017-11-09 19:07:41 +08:00
zhengshuxin
c9267f4d93 master template: remove unused args 2017-11-07 17:08:54 +08:00
zhengshuxin
76889c5b35 master: supporting start service with absolute path 2017-11-07 11:54:12 +08:00
zhengshuxin
652b567c9e fiber: add signal handling, fixed one bug that 32 integer overflow 2017-11-02 11:09:24 +08:00
zhengshuxin
231c7b0e4c fiber: pread/pwrite were hooked 2017-10-29 11:04:21 +08:00
zhengshuxin
7e1c8226a5 fiber: add safety checking in fiber lock 2017-10-27 20:27:50 +08:00
zhengshuxin
8b24ba7ac2 fiber: fixed bug in fiber that the signed int maybe overflow 2017-10-27 13:51:47 +08:00
zhengshuxin
7b4023940f fiber: fixed one bug that signed int maybe overflow. 2017-10-27 13:50:11 +08:00
zhengshuxin
db886f9d62 master: all server template support waiting the service starting status 2017-10-27 11:38:10 +08:00
zhengshuxin
66992ee4e5 fiber: sendfile/sendfile64 has been hooked 2017-10-20 10:27:25 +08:00
zhengshuxin
4235dcd1d9 fiber: EVENT's members poll_list & epoll_list can use FIFO or STACK, other than RING 2017-10-20 10:19:34 +08:00
centos6.9-32
beb5b6ec98 fiber: add API can get/set system errno 2017-10-16 22:41:10 -07:00
zhengshuxin
d83875cfc4 fiber: hook sendfile API 2017-10-16 18:24:52 +08:00
zhengshuxin
1d5d556bfd fiber_lock: use thread muext as default 2017-10-14 23:18:15 +08:00
zhengshuxin
580c4023d1 fiber_lock: disable EVENT notify 2017-10-13 10:32:50 +08:00
zhengshuxin
7749e15bcc fiber: test 2017-10-12 18:59:50 +08:00
zhengshuxin
41a391b39c fiber_lock: test io mode 2017-10-11 23:15:13 +08:00
zhengshuxin
cde67b5b30 fiber_lock: test 2017-10-11 19:29:11 +08:00
zhengshuxin
57e4c8663d thread_lock: fixed bug 2017-10-10 14:05:57 +08:00
zhengshuxin
9970075fa1 fiber_mutex: fixed one bug when thread_safe parameter is set true 2017-10-10 11:47:35 +08:00
zhengshuxin
b998731976 building: modify Makefiles to build more quickly on multi-cores CPU 2017-10-10 10:19:59 +08:00
zhengshuxin
cd5b074aa5 fiber_lock: in_ and out_ should be set to -1 if thread_safe is false 2017-10-09 15:28:16 +08:00
zhengshuxin
e8219034c3 sql in db.sql is error 2017-10-08 22:29:03 +08:00
zhengshuxin
98617f7c8d delete unused files. 2017-10-08 18:29:26 +08:00
zhengshuxin
29513259ed fiber_lock: can use thread_mutex or atomic lock for threads safety mutex 2017-10-08 14:42:01 +08:00
zhengshuxin
4a64289643 test event_mutex & fiber_lock 2017-10-08 12:07:17 +08:00
zhengshuxin
1050d4e45f event_mutex: add event_mutex sample in fiber mode; testing event_mutex ok in threads & fibers running modes. 2017-10-08 00:06:12 +08:00
zhengshuxin
ae17076f4a fiber_lock: add logger info when eventfd error 2017-10-01 21:34:24 +08:00
zhengshuxin
c2b85d8c87 delete tmp file 2017-10-01 14:03:37 +08:00
zhengshuxin
3d71e10668 fiber: fiber_lock can trigger immediately with IO event 2017-10-01 13:54:57 +08:00
zhengshuxin
4887620f18 fiber samples: add thread_lock for testing acl::fiber_lock in threads+fiber mode. 2017-10-01 13:54:18 +08:00
zhengshuxin
ffd5e43647 fiber_mutex: when blocked by thread mutex, the current fiber will be swapout 2017-09-29 23:15:42 +08:00
zhengshuxin
eb913000c1 fiber_mutex: auto check fiber::scheduled() 2017-09-29 17:55:46 +08:00
zhengshuxin
563ce8a395 feature: thread_mutex supports recursive parameter;
feature: fiber_mutex supports thread_mutex;
2017-09-29 17:35:17 +08:00
zhengshuxin
83724d3e8a valgrind: free global objects when process exiting to avoid valgrind reporting error. 2017-09-28 12:29:20 +08:00
zhengshuxin
54cc65db8d fiber: free static or global dynamic object when process exiting. 2017-09-27 19:26:08 +08:00
zhengshuxin
17824b3d98 fiber: support hooking mkdir API 2017-09-23 19:51:03 +08:00
zhengshuxin
dbfa9e8c10 lib_fiber: hook_io.c supports hooking stat/fstat/lstat 2017-09-23 00:27:26 +08:00
zhengshuxin
e71afae8a2 fiber: hook_net.c supports epoll_create1 API 2017-09-20 17:45:27 +08:00
zhengshuxin
892e102435 EVENT: tring to check fd's type by add call ev->add 2017-09-20 16:59:12 +08:00
zhengshuxin
31fc50166c add trigger.hpp into all vc's projects;
add trigger sample for fiber trigger;
2017-09-18 22:28:52 +08:00
zhengshuxin
08e241acb8 add trigger.hpp for trigger events by time. 2017-09-18 18:59:59 +08:00
zhengshuxin
e04cf8ec1b build ok for FreeBSD 2017-09-11 11:59:39 +08:00
zhengshuxin
101ad0e6e1 fiber server template can tell master its status after reloading 2017-09-10 17:16:06 +08:00
zhengshuxin
1a36ede275 fiber_server.c supports setuping SIGTERM; 2017-09-06 15:46:39 +08:00
zhengshuxin
89c74a1e7c delete unused codes 2017-09-02 21:02:37 +08:00
zhengshuxin
c76d603428 remove unused code. 2017-09-02 20:55:48 +08:00
zhengshuxin
2af766fb6e make acl::mbox generic with c++ template method. 2017-09-01 23:14:20 +08:00
zhengshuxin
5291cd0c7a test only 2017-09-01 18:59:42 +08:00
zhengshuxin
c9f0a6b92e add fiber timer for C++ module 2017-08-25 13:34:48 +08:00
zhengshuxin
2016e3b46a fiber_server.c can support reuseport when running alonely. 2017-08-21 17:39:48 +08:00
zhengshuxin
1758f39c30 icmp module can support client and server modes. 2017-08-18 18:11:11 +08:00
zhengshuxin
894350e1df modify icmp module for ping 2017-08-18 10:05:11 +08:00
zhengshuxin
a96eca4956 icmp ping ok. 2017-08-17 19:07:55 +08:00
zhengshuxin
50cec66b5a modify ping sample for lib_fiber 2017-08-16 10:50:37 +08:00
zhengshuxin
be7629ced2 add acl_read_xxx_wait with milliseconds;
icmp ping supports timeout and delay with milliseconds;
2017-08-15 12:17:57 +08:00
zhengshuxin
4e0d42e9fc tcp_client sample can read response from tcp_server with parameter -r 2017-08-12 20:11:17 +08:00
zhengshuxin
2728b4f14f add fiber test for tcp_ipc 2017-08-09 22:39:39 +08:00
zhengshuxin
dcaec58d47 add sample tcp_server & tcp_client in lib_fiber. 2017-08-09 16:04:54 +08:00
zhengshuxin
16040c02e7 fixed one compiling error. 2017-08-09 11:53:00 +08:00
zhengshuxin
1cc6196861 __end is reserved in g++4.8.x's header 2017-08-09 11:41:47 +08:00
zhengshuxin
024eab9a4a check g++'s version automally for supporting c++11 2017-08-09 11:25:10 +08:00
zhengshuxin
0a1c077f0d automatilly check g++'s version for supporting C++11 2017-08-09 11:23:15 +08:00
zhengshuxin
cedd5b0c18 all ssl samples can load libpolarssl.so dynamic. 2017-08-04 22:37:00 +08:00
zhengshuxin
91236bd108 libfiber.a & libfiber_cpp.a are compiled only as default. 2017-07-31 20:49:59 +08:00
zhengshuxin
fbf37b7237 remove master_base.hpp from master_fiber.hpp;
remove lib_acl.h from lib_fiber.h;
2017-07-27 18:16:39 +08:00
zhengshuxin
77f46902cd modify lib_fiber.h 2017-07-27 17:43:34 +08:00
zhengshuxin
e88320a6df modify header of fiber library. 2017-07-26 19:09:48 +08:00
Zhang Qiang
0a2a189675 packaging: add fiber lib to rpm 2017-07-26 15:15:30 +08:00