mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
fix for sleep using stl
This commit is contained in:
parent
46b4461fbb
commit
0f729ef078
@ -2,6 +2,8 @@
|
|||||||
// Licensed under GPLv2+
|
// Licensed under GPLv2+
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
|
#include <thread>
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
#include "input_common/gcadapter/gc_adapter.h"
|
#include "input_common/gcadapter/gc_adapter.h"
|
||||||
|
|
||||||
@ -182,7 +184,7 @@ void Adapter::ScanThreadFunc() {
|
|||||||
std::lock_guard<std::mutex> lk(initialization_mutex);
|
std::lock_guard<std::mutex> lk(initialization_mutex);
|
||||||
Setup();
|
Setup();
|
||||||
}
|
}
|
||||||
Sleep(500);
|
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user