mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-28 15:34:16 +00:00
klondike - better to unlock locks than to lock them twice :)
This commit is contained in:
parent
f75fdbbbbe
commit
75230ed808
@ -1017,7 +1017,7 @@ static void *klondike_get_replies(void *userdata)
|
||||
if (klninfo->jobque[dev].flushed == false)
|
||||
idle = true;
|
||||
slaves = klninfo->status[0].kline.ws.slavecount;
|
||||
rd_lock(&(klninfo->stat_lock));
|
||||
rd_unlock(&(klninfo->stat_lock));
|
||||
if (idle)
|
||||
applog(LOG_WARNING, "%s%i:%d went idle before work was sent",
|
||||
klncgpu->drv->name,
|
||||
@ -1026,7 +1026,7 @@ static void *klondike_get_replies(void *userdata)
|
||||
}
|
||||
wr_lock(&(klninfo->stat_lock));
|
||||
klninfo->jobque[dev].flushed = false;
|
||||
wr_lock(&(klninfo->stat_lock));
|
||||
wr_unlock(&(klninfo->stat_lock));
|
||||
}
|
||||
case KLN_CMD_STATUS:
|
||||
case KLN_CMD_ABORT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user