Browse Source

Merge commit '62a1403' into cg_merges_20130524b

Conflicts:
	util.h
Luke Dashjr 12 years ago
parent
commit
bce21f9d87
2 changed files with 7 additions and 7 deletions
  1. 0 7
      miner.h
  2. 7 0
      util.h

+ 0 - 7
miner.h

@@ -607,13 +607,6 @@ struct thr_info {
 	notifier_t work_restart_notifier;
 };
 
-extern int thr_info_create(struct thr_info *thr, pthread_attr_t *attr, void *(*start) (void *), void *arg);
-extern void thr_info_cancel(struct thr_info *thr);
-extern void thr_info_freeze(struct thr_info *thr);
-extern void nmsleep(unsigned int msecs);
-extern double us_tdiff(struct timeval *end, struct timeval *start);
-extern double tdiff(struct timeval *end, struct timeval *start);
-
 struct string_elist {
 	char *string;
 	bool free_me;

+ 7 - 0
util.h

@@ -56,6 +56,7 @@
 #endif
 extern char *json_dumps_ANY(json_t *, size_t flags);
 
+struct thr_info;
 struct pool;
 enum dev_reason;
 struct cgpu_info;
@@ -71,7 +72,13 @@ extern void real_block_target(unsigned char *target, const unsigned char *data);
 extern bool hash_target_check(const unsigned char *hash, const unsigned char *target);
 extern bool hash_target_check_v(const unsigned char *hash, const unsigned char *target);
 
+int thr_info_create(struct thr_info *thr, pthread_attr_t *attr, void *(*start) (void *), void *arg);
+void thr_info_freeze(struct thr_info *thr);
+void thr_info_cancel(struct thr_info *thr);
+void nmsleep(unsigned int msecs);
 void cgtime(struct timeval *tv);
+double us_tdiff(struct timeval *end, struct timeval *start);
+double tdiff(struct timeval *end, struct timeval *start);
 bool stratum_send(struct pool *pool, char *s, ssize_t len);
 bool sock_full(struct pool *pool);
 char *recv_line(struct pool *pool);