File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ ZFileMode ParseFileMode(const std::string& buildMode, ExporterSet* exporterSet);
135135int HandleExtract (ZFileMode fileMode, ExporterSet* exporterSet);
136136int ExtractFunc (int workerID, int fileListSize, std::string fileListItem, ZFileMode fileMode);
137137
138- volatile int numWorkersLeft = 0 ;
138+ std::atomic< unsigned int > numWorkersLeft = 0 ;
139139
140140extern const char gBuildHash [];
141141
@@ -659,15 +659,15 @@ int HandleExtract(ZFileMode fileMode, ExporterSet* exporterSet)
659659 bool parseSuccessful;
660660
661661 auto start = std::chrono::steady_clock::now ();
662- int fileListSize = fileList.size ();
663- Globals::Instance->singleThreaded = false ;
662+ size_t fileListSize = fileList.size ();
663+ Globals::Instance->singleThreaded = true ;
664664
665- for (int i = 0 ; i < fileListSize; i++)
665+ for (size_t i = 0 ; i < fileListSize; i++)
666666 Globals::Instance->workerData [i] = new FileWorker ();
667667
668668 numWorkersLeft = fileListSize;
669669
670- for (int i = 0 ; i < fileListSize; i++)
670+ for (size_t i = 0 ; i < fileListSize; i++)
671671 {
672672 if (Globals::Instance->singleThreaded )
673673 {
You can’t perform that action at this time.
0 commit comments