提交 c524647b 编写于 作者: D dapan1121

feature/qnode

上级 48495592
...@@ -181,7 +181,7 @@ typedef struct SCtgAction { ...@@ -181,7 +181,7 @@ typedef struct SCtgAction {
#define CTG_QUEUE_ADD() atomic_add_fetch_64(&gCtgMgmt.qRemainNum, 1) #define CTG_QUEUE_ADD() atomic_add_fetch_64(&gCtgMgmt.qRemainNum, 1)
#define CTG_QUEUE_SUB() atomic_sub_fetch_64(&gCtgMgmt.qRemainNum, 1) #define CTG_QUEUE_SUB() atomic_sub_fetch_64(&gCtgMgmt.qRemainNum, 1)
#define CTG_STAT_ADD(n) qError("done:%" PRId64, atomic_add_fetch_64(&(n), 1)) #define CTG_STAT_ADD(n) atomic_add_fetch_64(&(n), 1)
#define CTG_STAT_SUB(n) atomic_sub_fetch_64(&(n), 1) #define CTG_STAT_SUB(n) atomic_sub_fetch_64(&(n), 1)
#define CTG_IS_META_NULL(type) ((type) == META_TYPE_NULL_TABLE) #define CTG_IS_META_NULL(type) ((type) == META_TYPE_NULL_TABLE)
......
...@@ -217,7 +217,7 @@ int32_t ctgPushAction(SCtgMetaAction *action) { ...@@ -217,7 +217,7 @@ int32_t ctgPushAction(SCtgMetaAction *action) {
CTG_UNLOCK(CTG_WRITE, &gCtgMgmt.qlock); CTG_UNLOCK(CTG_WRITE, &gCtgMgmt.qlock);
CTG_QUEUE_ADD(); CTG_QUEUE_ADD();
//CTG_STAT_ADD(gCtgMgmt.stat.runtime.qNum); CTG_STAT_ADD(gCtgMgmt.stat.runtime.qNum);
tsem_post(&gCtgMgmt.sem); tsem_post(&gCtgMgmt.sem);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册