From 54a295b0f2d7f6773e3695611a1f5d7b5513828f Mon Sep 17 00:00:00 2001 From: zhengshuxin Date: Sun, 18 Jun 2023 17:36:58 +0800 Subject: [PATCH] rename fiber_sem_t_def to fiber_sem_t_sync. --- lib_fiber/cpp/include/fiber/fiber_sem.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib_fiber/cpp/include/fiber/fiber_sem.hpp b/lib_fiber/cpp/include/fiber/fiber_sem.hpp index e42669ad9..e756461aa 100644 --- a/lib_fiber/cpp/include/fiber/fiber_sem.hpp +++ b/lib_fiber/cpp/include/fiber/fiber_sem.hpp @@ -8,13 +8,13 @@ struct ACL_FIBER_SEM; namespace acl { typedef enum { - fiber_sem_t_def = 0, + fiber_sem_t_sync = 0, fiber_sem_t_async = (1 << 0), } fiber_sem_attr_t; class FIBER_CPP_API fiber_sem { public: - fiber_sem(int max, fiber_sem_attr_t attr = fiber_sem_t_def); + fiber_sem(int max, fiber_sem_attr_t attr = fiber_sem_t_async); ~fiber_sem(void); int wait(void); @@ -50,7 +50,7 @@ template class fiber_sbox { public: fiber_sbox(bool free_obj = true, bool async = true) - : sem_(0, async ? fiber_sem_t_async : fiber_sem_t_def) + : sem_(0, async ? fiber_sem_t_async : fiber_sem_t_sync) , free_obj_(free_obj) {} ~fiber_sbox(void) { clear(free_obj_); } @@ -104,7 +104,7 @@ template class fiber_sbox2 { public: fiber_sbox2(bool async = true) - : sem_(0, async ? fiber_sem_t_async : fiber_sem_t_def) {} + : sem_(0, async ? fiber_sem_t_async : fiber_sem_t_sync) {} ~fiber_sbox2(void) {}