mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Thread reportin and out can be static non inline.
This commit is contained in:
parent
10545d33c7
commit
b12badc9f2
@ -4665,7 +4665,7 @@ static void *api_thread(void *userdata)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void thread_reportin(struct thr_info *thr)
|
static void thread_reportin(struct thr_info *thr)
|
||||||
{
|
{
|
||||||
thr->getwork = false;
|
thr->getwork = false;
|
||||||
cgtime(&thr->last);
|
cgtime(&thr->last);
|
||||||
@ -4675,7 +4675,7 @@ void thread_reportin(struct thr_info *thr)
|
|||||||
|
|
||||||
/* Tell the watchdog thread this thread is waiting on get work and should not
|
/* Tell the watchdog thread this thread is waiting on get work and should not
|
||||||
* be restarted */
|
* be restarted */
|
||||||
static inline void thread_reportout(struct thr_info *thr)
|
static void thread_reportout(struct thr_info *thr)
|
||||||
{
|
{
|
||||||
thr->getwork = true;
|
thr->getwork = true;
|
||||||
cgtime(&thr->last);
|
cgtime(&thr->last);
|
||||||
|
1
miner.h
1
miner.h
@ -942,7 +942,6 @@ extern pthread_rwlock_t devices_lock;
|
|||||||
extern pthread_mutex_t restart_lock;
|
extern pthread_mutex_t restart_lock;
|
||||||
extern pthread_cond_t restart_cond;
|
extern pthread_cond_t restart_cond;
|
||||||
|
|
||||||
extern void thread_reportin(struct thr_info *thr);
|
|
||||||
extern void clear_stratum_shares(struct pool *pool);
|
extern void clear_stratum_shares(struct pool *pool);
|
||||||
extern void set_target(unsigned char *dest_target, double diff);
|
extern void set_target(unsigned char *dest_target, double diff);
|
||||||
extern int restart_wait(struct thr_info *thr, unsigned int mstime);
|
extern int restart_wait(struct thr_info *thr, unsigned int mstime);
|
||||||
|
Loading…
Reference in New Issue
Block a user