mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 14:58:01 +00:00
allow __work_complete() access
This commit is contained in:
parent
3fc7ff45e4
commit
c9adb1929c
@ -6428,7 +6428,7 @@ struct work *clone_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void __work_completed(struct cgpu_info *cgpu, struct work *work)
|
||||
void __work_completed(struct cgpu_info *cgpu, struct work *work)
|
||||
{
|
||||
if (work->queued)
|
||||
cgpu->queued_count--;
|
||||
|
1
miner.h
1
miner.h
@ -1468,6 +1468,7 @@ extern struct work *get_queued(struct cgpu_info *cgpu);
|
||||
extern struct work *__find_work_bymidstate(struct work *que, char *midstate, size_t midstatelen, char *data, int offset, size_t datalen);
|
||||
extern struct work *find_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate, size_t midstatelen, char *data, int offset, size_t datalen);
|
||||
extern struct work *clone_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate, size_t midstatelen, char *data, int offset, size_t datalen);
|
||||
extern void __work_completed(struct cgpu_info *cgpu, struct work *work);
|
||||
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 hash_driver_work(struct thr_info *mythr);
|
||||
|
Loading…
Reference in New Issue
Block a user