mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 03:47:53 +08:00
acl::fiber_event using FIBER_FLAG_USE_MUTEX as default
This commit is contained in:
parent
8c6104b798
commit
2d0cd3ed91
@ -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 平台
|
||||
|
||||
|
@ -23,7 +23,7 @@ public:
|
||||
* 造成惊群问题;当启动的线程数较(几十个左右),则此参数可以设为 false
|
||||
* 以告之内部使用原子数进行同步保护
|
||||
*/
|
||||
fiber_event(bool use_mutex = false);
|
||||
fiber_event(bool use_mutex = true);
|
||||
~fiber_event(void);
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user