Browse Source

Initialise usb after all the locks and conditionals are initialised.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
4a620cce44
  1. 4
      cgminer.c

4
cgminer.c

@ -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…
Cancel
Save