mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-09 20:52:08 +00:00
Initialise usb after all the locks and conditionals are initialised.
This commit is contained in:
parent
aa9938973e
commit
4a620cce44
@ -8011,8 +8011,6 @@ int main(int argc, char *argv[])
|
|||||||
initial_args[i] = strdup(argv[i]);
|
initial_args[i] = strdup(argv[i]);
|
||||||
initial_args[argc] = NULL;
|
initial_args[argc] = NULL;
|
||||||
|
|
||||||
initialise_usb();
|
|
||||||
|
|
||||||
mutex_init(&hash_lock);
|
mutex_init(&hash_lock);
|
||||||
mutex_init(&console_lock);
|
mutex_init(&console_lock);
|
||||||
cglock_init(&control_lock);
|
cglock_init(&control_lock);
|
||||||
@ -8036,6 +8034,8 @@ int main(int argc, char *argv[])
|
|||||||
if (unlikely(pthread_cond_init(&gws_cond, NULL)))
|
if (unlikely(pthread_cond_init(&gws_cond, NULL)))
|
||||||
quit(1, "Failed to pthread_cond_init gws_cond");
|
quit(1, "Failed to pthread_cond_init gws_cond");
|
||||||
|
|
||||||
|
initialise_usb();
|
||||||
|
|
||||||
snprintf(packagename, sizeof(packagename), "%s %s", PACKAGE, VERSION);
|
snprintf(packagename, sizeof(packagename), "%s %s", PACKAGE, VERSION);
|
||||||
|
|
||||||
handler.sa_handler = &sighandler;
|
handler.sa_handler = &sighandler;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user