Rework wifi/multicast locks

This commit is contained in:
Patrick Nicolas
2024-09-12 17:00:07 +02:00
parent 5822dddab4
commit b7f27e9300
8 changed files with 127 additions and 72 deletions
+8 -2
View File
@@ -20,6 +20,7 @@
#pragma once
#include "configuration.h"
#include "wifi_lock.h"
#include "xr/fb_face_tracker2.h"
#include "xr/hand_tracker.h"
#ifdef __ANDROID__
@@ -143,6 +144,8 @@ class application : public singleton<application>
std::filesystem::path config_path;
std::filesystem::path cache_path;
std::shared_ptr<wifi_lock> wifi;
std::string server_address;
std::mutex scene_stack_lock;
@@ -182,8 +185,6 @@ public:
#ifdef __ANDROID__
void setup_jni();
void set_wifi_locks(bool enabled);
static AAssetManager * asset_manager()
{
return instance().app_info.native_app->activity->assetManager;
@@ -317,6 +318,11 @@ public:
return instance().eye_gaze_space;
};
static wifi_lock & get_wifi_lock()
{
return *instance().wifi;
}
static void ignore_debug_reports_for(void * object)
{
#ifndef NDEBUG