1
0
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:
Kano 2013-10-29 22:30:34 +11:00
parent f75fdbbbbe
commit 75230ed808

View File

@ -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: