Browse Source

Export the flush_queue function for use by drivers.

port-ckolivas
Con Kolivas 11 years ago committed by Noel Maersk
parent
commit
95ac0c4356
  1. 1
      miner.h
  2. 4
      sgminer.c

1
miner.h

@ -1396,6 +1396,7 @@ extern void __work_completed(struct cgpu_info *cgpu, struct work *work); @@ -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);

4
sgminer.c

@ -3767,8 +3767,6 @@ int restart_wait(struct thr_info *thr, unsigned int mstime) @@ -3767,8 +3767,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)
{
struct pool *cp = current_pool();
@ -6459,7 +6457,7 @@ struct work *take_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate, @@ -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;

Loading…
Cancel
Save