瀏覽代碼

HPCC-16761 Remove extra critset for ESP Logging queue

Multi-thread guards are implemented at the log thread level tp
protect job queue from enqueue, dequeue, and backup logSafe file.
So, we do not need to the extra critset from SafeQueueOf. This
will improve performance.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 8 年之前
父節點
當前提交
95e449ba7a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      esp/logging/logginglib/logthread.hpp

+ 1 - 1
esp/logging/logginglib/logthread.hpp

@@ -47,7 +47,7 @@ class CLogThread : public Thread , implements IUpdateLogThread
 
     Owned<IEspLogAgent> logAgent;
     LOGServiceType services[MAXLOGSERVICES];
-    SafeQueueOf<IInterface, false> logQueue;
+    QueueOf<IInterface, false> logQueue;
     CriticalSection logQueueCrit;
     Semaphore       m_sem;