diff --git a/miner.h b/miner.h index 7a83f649..0d2fd0f9 100644 --- a/miner.h +++ b/miner.h @@ -1396,6 +1396,7 @@ extern void __work_completed(struct cgpu_info *cgpu, struct work *work); extern int age_queued_work(struct cgpu_info *cgpu, double secs); extern void work_completed(struct cgpu_info *cgpu, struct work *work); extern struct work *take_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate, size_t midstatelen, char *data, int offset, size_t datalen); +extern void flush_queue(struct cgpu_info *cgpu); extern void hash_driver_work(struct thr_info *mythr); extern void hash_queued_work(struct thr_info *mythr); extern void _wlog(const char *str); diff --git a/sgminer.c b/sgminer.c index 1072232f..ff0242de 100644 --- a/sgminer.c +++ b/sgminer.c @@ -3766,8 +3766,6 @@ int restart_wait(struct thr_info *thr, unsigned int mstime) return rc; } - -static void flush_queue(struct cgpu_info *cgpu); static void *restart_thread(void __maybe_unused *arg) { @@ -6459,7 +6457,7 @@ struct work *take_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate, return work; } -static void flush_queue(struct cgpu_info *cgpu) +void flush_queue(struct cgpu_info *cgpu) { struct work *work = NULL;