Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
briaguya-ai committed Nov 7, 2023
1 parent b5557d8 commit c1361f7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/controller/deviceindex/LUSDeviceIndexMappingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#include <sstream>

namespace LUS {
LUSDeviceIndexMappingManager::LUSDeviceIndexMappingManager() : mIsInitialized(false), mSDLControllerConnectionEventThreadRunning(false) {
LUSDeviceIndexMappingManager::LUSDeviceIndexMappingManager()
: mIsInitialized(false), mSDLControllerConnectionEventThreadRunning(false) {
#ifdef __WIIU__
UpdateExtensionTypesFromConfig();
#else
Expand All @@ -27,9 +28,9 @@ LUSDeviceIndexMappingManager::LUSDeviceIndexMappingManager() : mIsInitialized(fa
}

LUSDeviceIndexMappingManager::~LUSDeviceIndexMappingManager() {
#ifndef __WIIU__
#ifndef __WIIU__
SDLControllerConnectionEventThreadExit();
#endif
#endif
}

#ifdef __WIIU__
Expand Down Expand Up @@ -239,15 +240,14 @@ void LUSDeviceIndexMappingManager::SDLControllerConnectionEventThread() {
void LUSDeviceIndexMappingManager::SDLControllerConnectionEventThreadInit() {
if (!mSDLControllerConnectionEventThreadRunning) {
mSDLControllerConnectionEventThreadRunning = true;
mSDLControllerConnectionEventThread = std::thread(&LUSDeviceIndexMappingManager::SDLControllerConnectionEventThread, this);
mSDLControllerConnectionEventThread =
std::thread(&LUSDeviceIndexMappingManager::SDLControllerConnectionEventThread, this);
}
}

void LUSDeviceIndexMappingManager::SDLControllerConnectionEventThreadExit() {
// Tell the thread to stop
{
mSDLControllerConnectionEventThreadRunning = false;
}
{ mSDLControllerConnectionEventThreadRunning = false; }

// Wait until the thread quits
mSDLControllerConnectionEventThread.join();
Expand Down

0 comments on commit c1361f7

Please sign in to comment.