summaryrefslogtreecommitdiff
path: root/src/server/server.h
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-23 02:56:37 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-23 22:59:46 +0300
commit5758e0315f9d27007575293760db6d389c2f4162 (patch)
tree3594078e4694e12c02f56f927be0d674159112bb /src/server/server.h
parentf0ba39a28bb7a42b0dd9755a6d759702a7e39258 (diff)
device: separate high-priority thread for interacting with hwsched
Diffstat (limited to 'src/server/server.h')
-rw-r--r--src/server/server.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/server.h b/src/server/server.h
index 705503f..0f65688 100644
--- a/src/server/server.h
+++ b/src/server/server.h
@@ -13,7 +13,7 @@
#include <netinet/in.h>
#include "connection.h"
-#include "../numeric_types.h"
+#include "../types.h"
#include "../formatter/formatter.h"
#include "../p18/client.h"
#include "../p18/types.h"
@@ -22,8 +22,6 @@
namespace server {
-typedef std::lock_guard<std::mutex> LockGuard;
-
class Connection;
struct CachedResponse {
@@ -69,6 +67,7 @@ public:
void setDeviceErrorLimit(u32 deviceErrorLimit);
void start(std::string& host, int port);
+ void createDeviceThread();
bool verbose() const { return verbose_; }
void addConnection(Connection* conn);