|
|
|
@ -7494,6 +7494,13 @@ int main(int argc, char *argv[])
@@ -7494,6 +7494,13 @@ int main(int argc, char *argv[])
|
|
|
|
|
if (unlikely(pthread_cond_init(&gws_cond, NULL))) |
|
|
|
|
quit(1, "Failed to pthread_cond_init gws_cond"); |
|
|
|
|
|
|
|
|
|
/* Create a unique get work queue */ |
|
|
|
|
getq = tq_new(); |
|
|
|
|
if (!getq) |
|
|
|
|
quit(1, "Failed to create getq"); |
|
|
|
|
/* We use the getq mutex as the staged lock */ |
|
|
|
|
stgd_lock = &getq->mutex; |
|
|
|
|
|
|
|
|
|
snprintf(packagename, sizeof(packagename), "%s %s", PACKAGE, VERSION); |
|
|
|
|
|
|
|
|
|
handler.sa_handler = &sighandler; |
|
|
|
@ -7712,13 +7719,6 @@ int main(int argc, char *argv[])
@@ -7712,13 +7719,6 @@ int main(int argc, char *argv[])
|
|
|
|
|
quit(1, "Failed to calloc mining_thr[%d]", i); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* Create a unique get work queue */ |
|
|
|
|
getq = tq_new(); |
|
|
|
|
if (!getq) |
|
|
|
|
quit(1, "Failed to create getq"); |
|
|
|
|
/* We use the getq mutex as the staged lock */ |
|
|
|
|
stgd_lock = &getq->mutex; |
|
|
|
|
|
|
|
|
|
if (opt_benchmark) |
|
|
|
|
goto begin_bench; |
|
|
|
|
|
|
|
|
|