Launching app thread-safe

This commit is contained in:
loki
2019-12-15 23:10:44 +01:00
parent 059adc905d
commit 2e7d621e12
3 changed files with 22 additions and 17 deletions
+7 -5
View File
@@ -6,14 +6,16 @@
#define SUNSHINE_STREAM_H
#include "crypto.h"
#include "thread_safe.h"
namespace stream {
//FIXME: Make thread safe
extern crypto::aes_t gcm_key;
extern crypto::aes_t iv;
extern std::string app_name;
struct launch_session_t {
crypto::aes_t gcm_key;
crypto::aes_t iv;
std::string app_name;
};
extern safe::event_t<launch_session_t> launch_event;
void rtpThread();
}