fix data race
This commit is contained in:
@@ -72,7 +72,7 @@ extern std::string FRONT_INST;
|
||||
extern uint32_t g_mqproducer_blocked_times;
|
||||
|
||||
//初始化标志
|
||||
extern int INITFLAG;
|
||||
extern std::atomic<int> INITFLAG;
|
||||
|
||||
//测试用的终端数组
|
||||
extern std::vector<std::string> TESTARRAY;
|
||||
|
||||
Reference in New Issue
Block a user