Commit Graph

493 Commits

Author SHA1 Message Date
zhengshuxin
cf735fe123 add event_mutex into lib_acl_cpp, which can support threads & fibers
mutex by using IO + atomic as mutex
2017-10-06 23:05:14 +08:00
zhengshuxin
cbab14ffb2 when openning one connection is blocked in peek(), this operation
will block the other threads's when calling peek(), so the open()
should be aparted from lock scope.
2017-10-06 17:53:02 +08:00
zhengshuxin
3d71e10668 fiber: fiber_lock can trigger immediately with IO event 2017-10-01 13:54:57 +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
0bb8cb9c6c format c++ code style 2017-09-26 11:48:09 +08:00
zhengshuxin
c57beda5df method name in bitmap class maybe collision with some macro on some platfom 2017-09-21 16:18:15 +08:00
zhengshuxin
5a44b8c0dc remove test codes from tcp_pool.cpp 2017-09-19 10:57:35 +08:00
zhengshuxin
785ec6dc95 merge tcp_pool.cpp 2017-09-19 10:55:33 +08:00
zsx
1aab9b1e14 add trigger.hpp into xcode project 2017-09-19 10:25:27 +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
郑树新
0560c4f018 modify comments into thread_cond.hpp 2017-09-13 18:04:09 +08:00
郑树新
0ddf61cd7a add comments into thread_cond.hpp & thread_mutex.hpp 2017-09-13 18:02:30 +08:00
zhengshuxin
3d864ea148 one compiling warning on clang5.0 2017-09-12 18:11:58 +08:00
zhengshuxin
70957fad04 invalid date submit from FreeBSD 2017-09-11 13:57:59 +08:00
zhengshuxin
b9283ffbf5 build ok on FreeBSD 2017-07-11 17:44:14 +08:00
zhengshuxin
a67e6a6338 sighup's result status from children can be got by acl_master 2017-09-09 00:30:39 +08:00
zhengshuxin
7d94dd5a04 let mbox::pop be blocked when timeout < 0 2017-09-08 19:18:49 +08:00
zsxxsz
27fefa695c fixed compiling error of demos on windows by vc2008 2017-09-04 23:22:35 +08:00
zhengshuxin
8582d02d2e remove debug line in istream.cpp 2017-09-03 18:05:08 +08:00
zhengshuxin
dd9eed4698 compiling acl ok on FreeBSD 2015-12-13 10:15:00 +08:00
zhengshuxin
7dadf786df add test code in mbox.hpp 2017-09-02 17:59:32 +08:00
zhengshuxin
4ade4ff521 add mbox_free in mbox.cpp 2017-09-02 10:10:17 +08:00
zhengshuxin
3465037c6b acl::mbox, acl::atomic can be compiled ok on Linux & Windows. 2017-09-02 09:46:03 +08:00
zsxxsz
4afb237dd9 fixed compiling error by vc 2017-09-02 09:42:11 +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
郑树新
424a543a71 add test in atomic 2017-08-31 17:52:18 +08:00
zsx
4bebc24c7e add bitmap class into xcode's project. 2017-07-17 17:21:49 +08:00
zhengshuxin
85b55d4e4e acl_mbox_read's timeout use millisecond precision 2017-08-29 11:32:07 +08:00
zhengshuxin
3554fd6b25 add lost files 2017-08-24 09:09:05 +08:00
zsxxsz
6c7fa88358 modify bitmap.hpp 2017-08-23 22:35:24 +08:00
zhengshuxin
5b0cdc1fc9 add bitmap class for bit operation 2017-08-23 15:14:40 +08:00
zsxxsz
28f805981e lpop and rpop's comments are invalid in acl::redis_list 2017-08-22 22:37:54 +08:00
zsx
6b0c6b5070 add atomic, thread_mutex and thread_cond class into xcode project. 2017-07-17 17:17:02 +08:00
zhengshuxin
88a7194064 add thread_cond & thread_mutex class into different vc projects 2017-08-22 15:35:01 +08:00
zhengshuxin
b637f0bb74 modify c++ style of locker class 2017-08-22 15:28:12 +08:00
zhengshuxin
59a7899fa3 add acl::thread_cond testing in sample thread 2017-08-22 15:27:37 +08:00
zhengshuxin
cdd3684407 add thread_cond.hpp & thread_mutex.hpp into lib_acl.hpp 2017-08-22 15:21:23 +08:00
zhengshuxin
5723a4369f add thread_cond c++ class 2017-08-22 15:21:07 +08:00
zhengshuxin
f1fa41e523 add thread_mutex c++ class. 2017-08-22 15:20:28 +08:00
zhengshuxin
8f58d773b4 add atomic operation and modify vc projects for adding atomic class. 2017-08-18 22:55:31 +08:00
zhengshuxin
d154cc292e avoid some gcc compiling warning. 2017-08-16 10:55:14 +08:00
zhengshuxin
1915852bd9 SO_REUSEPORT can be used in master server framework by setting configure item 2017-08-10 11:35:52 +08:00
zhengshuxin
ae5ea084dd add method that can get socket_stream from tcp_reader & tcp_sender. 2017-08-09 19:05:38 +08:00
郑树新
08d61b31f6 utf-8 without BOM will be warned by vc. 2017-08-09 16:15:01 +08:00
zhengshuxin
dcaec58d47 add sample tcp_server & tcp_client in lib_fiber. 2017-08-09 16:04:54 +08:00
zhengshuxin
d74d97e3b7 add tcp_pool's samples in Makefile 2017-08-09 11:59:11 +08:00
zhengshuxin
e981079948 tcp_client sample compiling error. 2017-08-09 11:51:53 +08:00