diff --git a/src/common/threading.c b/src/common/threading.c index c43ebf5d8..5585f6d6b 100644 --- a/src/common/threading.c +++ b/src/common/threading.c @@ -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); diff --git a/src/fastfetch.c b/src/fastfetch.c index 20ee06d9b..9a0c0f5e2 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -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); diff --git a/src/fastfetch.h b/src/fastfetch.h index e8e166a54..71a799c5a 100644 --- a/src/fastfetch.h +++ b/src/fastfetch.h @@ -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); diff --git a/src/flashfetch.c b/src/flashfetch.c index 433848447..64d1acbd9 100644 --- a/src/flashfetch.c +++ b/src/flashfetch.c @@ -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); diff --git a/tests/performance.c b/tests/performance.c index 9c44edbce..f92d9662a 100644 --- a/tests/performance.c +++ b/tests/performance.c @@ -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))