فهرست منبع

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;
     Owned<IEspLogAgent> logAgent;
     LOGServiceType services[MAXLOGSERVICES];
     LOGServiceType services[MAXLOGSERVICES];
-    SafeQueueOf<IInterface, false> logQueue;
+    QueueOf<IInterface, false> logQueue;
     CriticalSection logQueueCrit;
     CriticalSection logQueueCrit;
     Semaphore       m_sem;
     Semaphore       m_sem;