From 03d2b827173a2db9827d26710ed2687f737c3bf4 Mon Sep 17 00:00:00 2001 From: liujialiang Date: Fri, 17 Jun 2022 16:46:04 +0800 Subject: [PATCH] Delete definition of INVALID_SEMA_VALUE in thread_pool.h If someone include ssemaphore_ex.h and thread_pool.h at the same time, there will be a problem of redefinition. Signed-off-by: liujialiang Change-Id: I2a392cbe61b3500d65d47bc1d6c5800be86bf0b0 --- base/include/thread_pool.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/base/include/thread_pool.h b/base/include/thread_pool.h index 7bea3b6..07caa4f 100644 --- a/base/include/thread_pool.h +++ b/base/include/thread_pool.h @@ -27,8 +27,6 @@ namespace OHOS { -const int INVALID_SEMA_VALUE = -1; - class ThreadPool : public NoCopyable { public: typedef std::function Task; -- Gitee