mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
renamed calculation threads to detection threads
This commit is contained in:
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user