forked from Nexusoft/PrimeSoloMiner
-
Notifications
You must be signed in to change notification settings - Fork 4
/
util.h
39 lines (29 loc) · 894 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef COINSHIELD_UTIL_H
#define COINSHIELD_UTIL_H
#include <boost/date_time/posix_time/posix_time.hpp>
#include "hash/templates.h"
#ifdef WIN32
typedef int pid_t;
#else
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#endif
#include <string>
#include <vector>
#include <stdio.h>
#include <cstdlib>
#include <iostream>
#include <boost/bind.hpp>
#include <boost/filesystem.hpp>
#include <boost/smart_ptr.hpp>
#include <boost/asio.hpp>
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#define loop for(;;)
#define BEGIN(a) ((char*)&(a))
#define END(a) ((char*)&((&(a))[1]))
#define Sleep(a) boost::this_thread::sleep(boost::posix_time::milliseconds(a))
#define LOCK(a) boost::lock_guard<boost::mutex> lock(a)
int GetTotalCores();
#endif