acl::fiber_event using FIBER_FLAG_USE_MUTEX as default

This commit is contained in:
zsx 2018-11-26 09:53:32 +08:00
parent 8c6104b798
commit 2d0cd3ed91
3 changed files with 7 additions and 4 deletions

View File

@ -1,8 +1,11 @@
93) 2018.11.26
93.1) bugfix: event_iocp.c 中的 iocp_check 方法中的一处断言有问题
94) 2018.11.26
94.1) bugfix: event_iocp.c 中的 iocp_check 方法中的一处断言有问题
-- program_code@sohu.com
93) 2018.11.25
93.1) feature: fiber_event.c 增加控制参数
92) 2018.10.31
92.1) compile: acl_set_core_limit 仅可用在 UNIX-like 平台

View File

@ -23,7 +23,7 @@ public:
* 线 false
* 使
*/
fiber_event(bool use_mutex = false);
fiber_event(bool use_mutex = true);
~fiber_event(void);
/**

View File

@ -5,7 +5,7 @@
namespace acl {
fiber_event::fiber_event(bool use_mutex /* = false */)
fiber_event::fiber_event(bool use_mutex /* = true */)
{
unsigned flag = use_mutex ? FIBER_FLAG_USE_MUTEX : 0;