Commit Graph

483 Commits

Author SHA1 Message Date
zhengshuxin
bda63febae fatal if fbase->event_in is invalid in fbase_event::fbase_event_open 2019-10-18 10:07:26 +08:00
ruki
1c0ff5d208 update xmake.lua: export public includedirs 2019-10-14 09:34:37 +08:00
zhengshuxin
8d4dff9f18 building with xmake 2019-10-08 16:36:16 +08:00
zhengshuxin
b698693b3c build ok for FreeBSD 2016-01-14 14:45:37 +08:00
zhengshuxin
85374450d0 optimize: many optimizing for decrease libs' size for mobile platom;
bugfix: fixed one bug in event_epoll.c of fiber lib.
2019-09-19 10:33:10 +08:00
shuxin   zheng
152415550b upgrade xcode projects of acl 2019-09-13 17:06:46 +08:00
zhengshuxin
ed1521b36b build ok by xmake 2019-09-03 22:28:50 +08:00
zsxxsz
51b1789300 optimize WinEchod sample 2019-08-18 13:10:26 +08:00
zsxxsz
2ee35f6434 fixed bugs for restarting fiber IO scheduling. 2019-08-17 22:07:51 +08:00
zsxxsz
2153e5a117 format code. 2019-08-17 22:04:57 +08:00
郑树新
f66a47735b fixed compiling error by vc 2019-08-16 18:24:54 +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
946bc1944e use conditional compiling for hooking system API getimeofday 2019-08-12 14:52:09 +08:00
shuxin   zheng
8d96beb9b0 format code 2019-08-11 11:12:39 +08:00
shuxin   zheng
574800f456 event_kqueue.c->kevent_fflush should use hooked API __sys_kevent 2019-08-11 11:10:43 +08:00
zhengshuxin
0c4901f531 fixed one bug in hooked API sleep in io.c 2019-08-08 14:33:32 +08:00
zhengshuxin
a186db64f8 fixed compiling error on maxos 2019-08-07 14:30:12 +08:00
zhengshuxin
e20a39ebef fixed one compiling error on macos 2019-08-07 14:26:24 +08:00
zhengshuxin
42d2bd5684 fixed one bug in hooked API gettimeofday for precision. 2019-08-06 10:28:31 +08:00
zhengshuxin
df843708f8 format code style 2019-07-31 22:06:54 +08:00
zhengshuxin
85812e6f1c improvement ring's performance 2019-07-31 22:00:41 +08:00
zhengshuxin
a0b258eb28 test gettimeofday ok 2019-07-31 16:32:17 +08:00
zhengshuxin
0ee5867c9d add one sample for testging gettimeofday 2019-07-31 16:31:36 +08:00
zhengshuxin
d8d624ee98 use utf8 for text files. 2019-07-30 23:52:48 +08:00
zhengshuxin
b02dfd34c6 speedup gettimeofday() by using some asm codes from DPDK 2019-07-30 23:48:25 +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
郑树新
649b94dc41 format source code's charset 2019-07-26 17:27:39 +08:00
zhengshuxin
3b1053652f fixed bug in fiber_sem.c 2019-07-17 09:32:20 +08:00
zhengshuxin
dd1f0b8eba modify Makefile 2019-06-26 23:06:32 +08:00
zhengshuxin
b2b3cdae9a Merge branch 'master' into github-zsx-master 2019-06-26 22:57:56 +08:00
郑树新
cff0958e2c
Merge branch 'master' into master 2019-06-26 22:52:56 +08:00
zhengshuxin
1a3adc67ef add features in todo 2019-06-25 10:54:55 +08:00
zhengshuxin
123328c1af remove unused comments 2019-06-24 13:06:06 +08:00
Dep user
84e7b857e5 fix compile error. 2019-06-18 14:02:42 +08:00
zsxxsz
cc202891ec compiling ok on Ubuntu12 32-bits 2019-06-17 22:31:43 +08:00
zsx
242250d5e0 add tcp_keeper module into xcode project 2019-06-11 19:43:24 +08:00
zhengshuxin
b71b8840bf replace assert with abort 2019-05-18 22:03:53 +08:00
zhengshuxin
77240768e5 remove unused files 2019-05-18 17:03:28 +08:00
zhengshuxin
064a4c325c optimize fiber_sem 2019-05-17 11:11:03 +08:00
zhengshuxin
0ffeedfcd4 fixed bugs in fiber_sem.c/fiber_lock.c 2019-05-16 16:48:48 +08:00
zhengshuxin
8b77b0456a safety & feature: add nocopyable limit for many class to avoid potential problem 2019-05-09 13:57:51 +08:00
zhengshuxin
4760ac19c9 tcp_keeper: add sync parameter to control if connect the given addr directly 2019-04-30 17:54:08 +08:00
zhengshuxin
d62bb45cd6 tcp_keeper: fixed one bug in keeper_conn.cpp;
server_socket: remove one constructur method;
2019-04-28 16:17:17 +08:00
zhengshuxin
82110b5dbd modify samples 2019-03-18 17:03:23 +08:00
zsx
669f0601e7 add comment in fiber_server.cpp 2019-03-06 13:57:39 +08:00
zsx
154fd0f71d don't connect first in tcp_keeper 2019-01-21 17:42:50 +08:00
zsx
b926d78534 optimize tcp_keeper 2019-01-17 14:10:59 +08:00
zsx
db2d293a3e tcp_keeper is ok! 2019-01-15 11:57:19 +08:00
郑树新
6e9691397a build ok for vc 2019-01-14 15:33:51 +08:00
zsx
1edd724a8d fixed one bug in fiber for stopping scheduling automatically 2019-01-14 14:34:14 +08:00
zsx
1cd42a9213 optimize tcp_keeper 2019-01-14 14:34:00 +08:00
zhengshuxin
2081b206c2 set free_obj's default value to true 2019-01-02 11:25:17 +08:00
zhengshuxin
480a8c9403 optimise fiber 2019-01-02 11:12:55 +08:00
zsx
03e2cf0a31 optimize tcp_keeper 2018-12-31 22:02:21 +08:00
zsx
5bb7daf807 tcp_keeper: add ttl controling for connection and connections pools;
http_request/http_client add controling parameters
2018-12-29 15:42:03 +08:00
zsx
ac311dd2d1 disable valgrind 2018-12-28 22:22:58 +08:00
zsx
ea8462f1ef add tcp_keeper class for tcp connections keepalive 2018-12-28 21:46:01 +08:00
zsx
fcfaddcf35 add syscall for hook system API 2018-12-27 17:35:18 +08:00
zsx
ff8a217755 acl_fiber_event.c: fixed one bug in event_ferror 2018-12-27 11:06:13 +08:00
zsx
7ab0b6f5e3 fixed bugs in acl_fiber_cond_wait/acl_fiber_cond_timedwait that detaching fbase must before calling acl_fiber_event_wait 2018-12-27 10:07:14 +08:00
zsx
e2fbff2b9b add fiber_tbox sample 2018-12-27 10:02:04 +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
50be7b26a6 fiber_cond.c: fixed one bug in acl_fiber_cond_timedwait when timeout happened 2018-12-24 17:12:10 +08:00
zsx
34a8d82734 fiber_server.cpp: service can't exit correctly when some connections is still connected. 2018-12-20 15:45:52 +08:00
zsx
605adfb614 disable debug fiber with valgrind 2018-12-16 17:46:47 +08:00
zsx
bd6375fe2a connect_manager: support fiber running in threads 2018-12-16 16:47:51 +08:00
zsx
b9ff539209 build fiber for Linux ok 2018-12-14 16:39:13 +08:00
郑树新
fcd083d307 build on Windows ok 2018-12-14 16:34:28 +08:00
zsx
a1636cb371 fixed sample's bug 2018-12-14 11:47:17 +08:00
郑树新
efeb4fdabb build for vc 2018-12-12 19:12:42 +08:00
zsx
077fcf399f building for all OS 2018-12-07 16:00:59 +08:00
zsx
c9d87eb368 delete unused files by xcode 2018-12-07 13:56:05 +08:00
zsx
d0d51ec6d1 build for macos 2018-12-07 13:50:42 +08:00
郑树新
ca7d64f263 vc2013 project for libfiber 2018-12-07 11:08:19 +08:00
zsx
35315809b9 add lost files to vc project 2018-12-06 22:07:24 +08:00
zsx
66a560e37f fixed bugs in client_wakeup of acl_threads_server.c;
acl::fiber_tbox and acl::fiber_cond are ok.
2018-12-06 15:50:13 +08:00
zsx
ecdb9df01f add ACL_FIBER_COND in fiber_cond.hpp 2018-12-01 12:04:36 +08:00
zsx
4db127ec9f optimize fiber_cond and fiber 2018-11-30 18:26:46 +08:00
zsx
04dd410821 add samples: thread_cond/thread_tbox 2018-11-30 18:26:25 +08:00
zsx
f75eebde9f add fiber_tbox.hpp 2018-11-30 17:20:45 +08:00
zsx
9445201f43 add lost file 2018-11-30 15:00:28 +08:00
zsx
fb271fd104 format to DOS style. 2018-11-30 14:38:22 +08:00
zsx
f570318eb6 modify fiber_cond 2018-11-30 14:36:15 +08:00
zsx
159a0e2760 add fiber_cond into libfiber 2018-11-30 14:35:58 +08:00
zsx
12c78277c8 add fiber_cond in cpp lib 2018-11-30 14:35:08 +08:00
zsx
8ed462ce69 replace assert with msg_fatal 2018-11-30 11:45:58 +08:00
zsx
56c8a058f4 fiber_event.c: fixed one bug in acl_fiber_event_notify 2018-11-29 22:44:16 +08:00
zsx
e48753986e fbase_event.c: restart IO when IO process is interrupted by EINTR. 2018-11-29 11:28:48 +08:00
zsx
4e5f45068e add one parameter for fiber_event class 2018-11-28 16:14:05 +08:00
zsx
877e7aa5d4 lib_fiber's changes.txt 2018-11-28 15:53:27 +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
zsx
9b26998122 add fbase_event.c 2018-11-28 13:42:10 +08:00
zsx
ec495072b1 lib_fiber/c/src/fiber_event.c: fixed one bug for lock conlision 2018-11-28 09:47:04 +08:00
zsx
92ffb2cc9d fixed one bug in fiber_event.c 2018-11-27 14:51:11 +08:00
zsx
feb5b87f59 add_write should return 0 or -1 2018-11-26 13:04:27 +08:00
zsx
2d0cd3ed91 acl::fiber_event using FIBER_FLAG_USE_MUTEX as default 2018-11-26 09:53:32 +08:00
zsx
8064aaab35 fixed one bug in iocp_check of file event_iocp.c 2018-11-26 09:22:55 +08:00