optimize thread pool

Signed-off-by: liduo <liduo29@huawei.com>
This commit is contained in:
liduo
2025-01-11 11:36:12 +08:00
parent bd4958491a
commit b682caffc7
11 changed files with 84 additions and 25 deletions
+3 -2
View File
@@ -49,11 +49,11 @@ const static std::string SOLUTIONS_ARROW = "> ";
const static std::string LONG_PATH_HEAD = "\\\\?\\";
const static int32_t VERSION_MAX_LEN = 128;
const static int32_t INT_TO_BYTES = sizeof(uint32_t);
static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.1.0.004" };
static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.1.0.005" };
const static int32_t TAG_LEN = 4;
constexpr static int DEFAULT_POOL_SIZE = 8;
static std::set<std::string> g_resourceSet;
static std::set<std::string> g_hapResourceSet;
const static int8_t THREAD_POOL_SIZE = 2;
const static int8_t INVALID_ID = -1;
enum class KeyType {
@@ -147,6 +147,7 @@ enum Option {
TARGET_CONFIG = 5,
DEFINED_SYSIDS = 6,
COMPRESSED_CONFIG = 7,
THREAD = 8,
STARTID = 'e',
FORCEWRITE = 'f',
HELP = 'h',