Browse Source

Merge commit '5a00c2a' into bfgminer

Conflicts:
	deviceapi.c
Luke Dashjr 13 years ago
parent
commit
46de45d82c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      deviceapi.c

+ 2 - 0
deviceapi.c

@@ -327,6 +327,7 @@ bool do_process_results(struct thr_info *mythr, struct timeval *tvp_now, struct
 
 void minerloop_async(struct thr_info *mythr)
 {
+	struct thr_info *thr = mythr;
 	struct cgpu_info *cgpu = mythr->cgpu;
 	const struct device_api *api = cgpu->api;
 	struct timeval tv_now;
@@ -382,6 +383,7 @@ djp: ;
 			reduce_timeout_to(&tv_timeout, &mythr->tv_poll);
 		}
 		
+		mythr = thr;
 		gettimeofday(&tv_now, NULL);
 		FD_ZERO(&rfds);
 		FD_SET(mythr->notifier[0], &rfds);