Browse Source

Thread reportin and out can be static non inline.

nfactor-troky
ckolivas 11 years ago
parent
commit
b12badc9f2
  1. 4
      cgminer.c
  2. 1
      miner.h

4
cgminer.c

@ -4665,7 +4665,7 @@ static void *api_thread(void *userdata) @@ -4665,7 +4665,7 @@ static void *api_thread(void *userdata)
return NULL;
}
void thread_reportin(struct thr_info *thr)
static void thread_reportin(struct thr_info *thr)
{
thr->getwork = false;
cgtime(&thr->last);
@ -4675,7 +4675,7 @@ void thread_reportin(struct thr_info *thr) @@ -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
* be restarted */
static inline void thread_reportout(struct thr_info *thr)
static void thread_reportout(struct thr_info *thr)
{
thr->getwork = true;
cgtime(&thr->last);

1
miner.h

@ -942,7 +942,6 @@ extern pthread_rwlock_t devices_lock; @@ -942,7 +942,6 @@ extern pthread_rwlock_t devices_lock;
extern pthread_mutex_t restart_lock;
extern pthread_cond_t restart_cond;
extern void thread_reportin(struct thr_info *thr);
extern void clear_stratum_shares(struct pool *pool);
extern void set_target(unsigned char *dest_target, double diff);
extern int restart_wait(struct thr_info *thr, unsigned int mstime);

Loading…
Cancel
Save