Browse Source

Merge commit '5bf9856' into cg_merges_20131023a

Luke Dashjr 12 years ago
parent
commit
958594e142
1 changed files with 2 additions and 2 deletions
  1. 2 2
      miner.c

+ 2 - 2
miner.c

@@ -8617,11 +8617,11 @@ struct work *take_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate,
 {
 	struct work *work;
 
-	rd_lock(&cgpu->qlock);
+	wr_lock(&cgpu->qlock);
 	work = __find_work_bymidstate(cgpu->queued_work, midstate, midstatelen, data, offset, datalen);
 	if (work)
 		__work_completed(cgpu, work);
-	rd_unlock(&cgpu->qlock);
+	wr_unlock(&cgpu->qlock);
 
 	return work;
 }