Commit Graph

183 Commits

Author SHA1 Message Date
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
zsxxsz
2153e5a117 format code. 2019-08-17 22:04:57 +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
郑树新
cff0958e2c
Merge branch 'master' into master 2019-06-26 22:52:56 +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
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
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
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
ea8462f1ef add tcp_keeper class for tcp connections keepalive 2018-12-28 21:46:01 +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
34a8d82734 fiber_server.cpp: service can't exit correctly when some connections is still connected. 2018-12-20 15:45:52 +08:00
郑树新
fcd083d307 build on Windows ok 2018-12-14 16:34:28 +08:00
郑树新
efeb4fdabb build for vc 2018-12-12 19:12:42 +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
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
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
2d0cd3ed91 acl::fiber_event using FIBER_FLAG_USE_MUTEX as default 2018-11-26 09:53:32 +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
127f6e0c33 acl_set_core_limit can only be used on UNIX-like OS. 2018-10-31 17:10:06 +08:00
zsx
ea3d71999a limit the core file's size and disable creating core when process is exiting. 2018-10-23 13:29:21 +08:00
zsx
f27af8b424 acl support IPV6 is OK now! 2018-09-16 21:49:58 +08:00
zsxxsz
c9e5e010a7 fixed compiling warning on VC 2018-08-19 23:11:36 +08:00
zsx
46f12d39ca using libfiber.h for C and libfiber.hpp for C++ 2018-08-19 23:03:39 +08:00
Li Qiang
65f7adf0a4 fix spelling mistake. 2018-08-08 10:46:18 +08:00
zsx
d64d78eb16 libfiber can be used on MacOS 2018-04-24 14:29:35 +08:00
zhengshuxin
7647c210b7 acl build without ACL_PREPARE_COMPILE defined 2018-04-17 16:42:26 +08:00
zsx
63f9ac04f8 merge from libfiber 2018-03-05 11:05:05 +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
zsx
ed330843d7 fiber.cpp: closesocket is for winsock 2018-01-31 12:00:56 +08:00
zsxxsz
580fdc4f72 fiber event: adding iocp for winsock 2018-01-30 23:45:34 +08:00
zsxxsz
2e38ce1365 fiber schedule process can be triggered automaticly. 2018-01-28 12:34:23 +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
5391987156 fixed channel.cpp in fiber compiling error 2018-01-18 14:37:06 +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
zsxxsz
c2a2d1b579 building fiber lib and samples are all ok by vc2012 and vc2013 2018-01-13 23:24:45 +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
3543cdda46 prepare for win gui message fiber 2018-01-07 23:22:38 +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
zhengshuxin
06ce51b912 changes "\r\n" to "\n" 2017-09-22 12:27:21 +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
f5ccd3a22c fixed build fiber error by xmake 2017-12-21 22:51:00 +08:00
zsx
e1a32b11ad add lost files in fiber 2017-12-21 21:40:17 +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
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
ruki
987385ea6e add xmake.lua 2017-11-30 10:04:15 +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
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
zhengshuxin
76889c5b35 master: supporting start service with absolute path 2017-11-07 11:54:12 +08:00
centos6.9-32
beb5b6ec98 fiber: add API can get/set system errno 2017-10-16 22:41:10 -07: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
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
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
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
ae17076f4a fiber_lock: add logger info when eventfd error 2017-10-01 21:34:24 +08:00
zhengshuxin
3d71e10668 fiber: fiber_lock can trigger immediately with IO event 2017-10-01 13:54:57 +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