mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 18:08:20 +00:00
Move thread_autotune() to autotune.c
This commit is contained in:
parent
f1835dc7f5
commit
e063b906ab
@ -10,4 +10,6 @@
|
|||||||
|
|
||||||
int autotune (hc_device_param_t *device_param, hashconfig_t *hashconfig);
|
int autotune (hc_device_param_t *device_param, hashconfig_t *hashconfig);
|
||||||
|
|
||||||
|
void *thread_autotune (void *p);
|
||||||
|
|
||||||
#endif // _AUTOTUNE_H
|
#endif // _AUTOTUNE_H
|
||||||
|
@ -309,3 +309,17 @@ int autotune (hc_device_param_t *device_param, hashconfig_t *hashconfig)
|
|||||||
|
|
||||||
return 0;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -746,18 +746,6 @@ static void *thread_outfile_remove (void *p)
|
|||||||
return (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)
|
static void *thread_calc_stdin (void *p)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user