mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-11 13:11:02 +00:00
Detach the thread once created so we don't have to explicitly try and join it.
This commit is contained in:
parent
b7a177532d
commit
d2cb012f5a
@ -499,6 +499,7 @@ static bool workio_submit_work(struct workio_cmd *wc)
|
|||||||
applog(LOG_ERR, "Failed to create submit_thread");
|
applog(LOG_ERR, "Failed to create submit_thread");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
pthread_detach(thr);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user