renamed calculation threads to detection threads

This commit is contained in:
Linus Dierheimer
2021-06-15 13:12:29 +02:00
parent f8c215775a
commit 409b1f29a6
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ static inline void* startThreadsThreadMain(void* instance)
return NULL;
}
void ffStartCalculationThreads(FFinstance* instance)
void ffStartDetectionThreads(FFinstance* instance)
{
pthread_t startThreadsThread;
pthread_create(&startThreadsThread, NULL, startThreadsThreadMain, instance);
+1 -1
View File
@@ -1049,7 +1049,7 @@ static void parseStructureCommand(FFinstance* instance, FFdata* data, const char
static void run(FFinstance* instance, FFdata* data)
{
if(data->multithreading)
ffStartCalculationThreads(instance);
ffStartDetectionThreads(instance);
if(data->structure.length == 0)
ffStrbufSetS(&data->structure, FASTFETCH_DEFAULT_STRUCTURE);
+1 -1
View File
@@ -244,7 +244,7 @@ void ffInitInstance(FFinstance* instance);
void ffFinish(FFinstance* instance);
//common/threading.c
void ffStartCalculationThreads(FFinstance* instance);
void ffStartDetectionThreads(FFinstance* instance);
//common/io.c
void ffPrintLogoAndKey(FFinstance* instance, const char* moduleName, uint8_t moduleIndex, const FFstrbuf* customKeyFormat);
+1 -1
View File
@@ -14,7 +14,7 @@ int main(int argc, char** argv)
ffStrbufSetS(&instance.config.color, instance.config.logo.colors[0]); //Use the primary color of the logo as key color
//Multithreading --> better performance
ffStartCalculationThreads(&instance);
ffStartDetectionThreads(&instance);
//Printing
ffPrintTitle(&instance);
+1 -1
View File
@@ -37,7 +37,7 @@ int main(int argc, char** argv)
FASTFETCH_TEST_PERFORMANCE(
puts("Thread starting");
ffStartCalculationThreads(&instance);
ffStartDetectionThreads(&instance);
)
FASTFETCH_TEST_PERFORMANCE(ffPrintTitle(&instance))