summaryrefslogtreecommitdiffstats
path: root/src/web_service/web_backend.h
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2018-09-17 20:28:58 +0200
committerfearlessTobi <thm.frey@gmail.com>2018-10-02 15:30:48 +0200
commit62f9409ba3e114b40b6923808290c02bf5af3d2c (patch)
treeb628db116034f811d0b55b8d8384bd704f80aa18 /src/web_service/web_backend.h
parentAddress more review comments (diff)
downloadyuzu-62f9409ba3e114b40b6923808290c02bf5af3d2c.tar
yuzu-62f9409ba3e114b40b6923808290c02bf5af3d2c.tar.gz
yuzu-62f9409ba3e114b40b6923808290c02bf5af3d2c.tar.bz2
yuzu-62f9409ba3e114b40b6923808290c02bf5af3d2c.tar.lz
yuzu-62f9409ba3e114b40b6923808290c02bf5af3d2c.tar.xz
yuzu-62f9409ba3e114b40b6923808290c02bf5af3d2c.tar.zst
yuzu-62f9409ba3e114b40b6923808290c02bf5af3d2c.zip
Diffstat (limited to 'src/web_service/web_backend.h')
-rw-r--r--src/web_service/web_backend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web_service/web_backend.h b/src/web_service/web_backend.h
index 549bcce29..d75fbcc15 100644
--- a/src/web_service/web_backend.h
+++ b/src/web_service/web_backend.h
@@ -5,7 +5,7 @@
#pragma once
#include <functional>
-#include <future>
+#include <mutex>
#include <string>
#include <tuple>
#include <httplib.h>
@@ -81,6 +81,7 @@ private:
std::unique_ptr<httplib::Client> cli;
struct JWTCache {
+ std::mutex mutex;
std::string username;
std::string token;
std::string jwt;