1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Move thread_autotune() to autotune.c

This commit is contained in:
jsteube 2016-09-15 04:00:47 +02:00
parent f1835dc7f5
commit e063b906ab
3 changed files with 16 additions and 12 deletions

View File

@ -10,4 +10,6 @@
int autotune (hc_device_param_t *device_param, hashconfig_t *hashconfig);
void *thread_autotune (void *p);
#endif // _AUTOTUNE_H

View File

@ -309,3 +309,17 @@ int autotune (hc_device_param_t *device_param, hashconfig_t *hashconfig)
return 0;
}
void *thread_autotune (void *p)
{
hc_device_param_t *device_param = (hc_device_param_t *) p;
if (device_param->skipped) return NULL;
hashconfig_t *hashconfig = data.hashconfig;
autotune (device_param, hashconfig);
return NULL;
}

View File

@ -746,18 +746,6 @@ static void *thread_outfile_remove (void *p)
return (p);
}
static void *thread_autotune (void *p)
{
hc_device_param_t *device_param = (hc_device_param_t *) p;
if (device_param->skipped) return NULL;
hashconfig_t *hashconfig = data.hashconfig;
autotune (device_param, hashconfig);
return NULL;
}
static void *thread_calc_stdin (void *p)
{