1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-03-13 22:16:14 +00:00
This commit is contained in:
jsteube 2016-09-28 22:38:09 +02:00
parent 7191780296
commit de5d0349c6
5 changed files with 9 additions and 9 deletions

View File

@ -1247,8 +1247,8 @@ typedef struct
* threads
*/
u32 shutdown_inner;
u32 shutdown_outer;
bool shutdown_inner;
bool shutdown_outer;
/**
* crack-per-time

View File

@ -1763,7 +1763,7 @@ static int outer_loop (user_options_t *user_options, user_options_extra_t *user_
hc_thread_t *inner_threads = (hc_thread_t *) mycalloc (10, sizeof (hc_thread_t));
data.shutdown_inner = 0;
data.shutdown_inner = false;
/**
* Outfile remove
@ -1882,7 +1882,7 @@ static int outer_loop (user_options_t *user_options, user_options_extra_t *user_
// wait for inner threads
data.shutdown_inner = 1;
data.shutdown_inner = true;
for (uint thread_idx = 0; thread_idx < inner_threads_cnt; thread_idx++)
{
@ -2240,7 +2240,7 @@ int main (int argc, char **argv)
hc_thread_t *outer_threads = (hc_thread_t *) mycalloc (10, sizeof (hc_thread_t));
data.shutdown_outer = 0;
data.shutdown_outer = false;
if (user_options->keyspace == false && user_options->benchmark == false && user_options->stdout_flag == false)
{
@ -2289,7 +2289,7 @@ int main (int argc, char **argv)
// wait for outer threads
data.shutdown_outer = 1;
data.shutdown_outer = true;
for (uint thread_idx = 0; thread_idx < outer_threads_cnt; thread_idx++)
{

View File

@ -110,7 +110,7 @@ void *thread_monitor (void *p)
u32 remove_left = user_options->remove_timer;
u32 status_left = user_options->status_timer;
while (data.shutdown_inner == 0)
while (data.shutdown_inner == false)
{
hc_sleep (sleep_time);

View File

@ -74,7 +74,7 @@ void *thread_outfile_remove (void *p)
uint check_left = outfile_check_timer; // or 1 if we want to check it at startup
while (opencl_ctx->run_main_level2 == true)
while (data.shutdown_inner == false)
{
hc_sleep (1);

View File

@ -77,7 +77,7 @@ void *thread_keypress (void *p)
tty_break ();
while (data.shutdown_outer == 0)
while (data.shutdown_outer == false)
{
int ch = tty_getchar ();