1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 01:44:23 +00:00

Export the flush_queue function for use by drivers.

This commit is contained in:
Con Kolivas 2014-01-31 22:16:11 +11:00 committed by Noel Maersk
parent ab805ec146
commit 95ac0c4356
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

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