mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Disabled system status polling on FreeBSD and Haiku
This commit is contained in:
parent
677e2fbb98
commit
539e5ed57a
|
@ -65,14 +65,14 @@ SystemStatus::SystemStatus() noexcept
|
||||||
getStatusWifi();
|
getStatusWifi();
|
||||||
getStatusCellular();
|
getStatusCellular();
|
||||||
getStatusBattery();
|
getStatusBattery();
|
||||||
#else
|
#elif !defined(__FreeBSD__) && !defined(__HAIKU__)
|
||||||
mPollThread = std::make_unique<std::thread>(&SystemStatus::pollStatus, this);
|
mPollThread = std::make_unique<std::thread>(&SystemStatus::pollStatus, this);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemStatus::~SystemStatus()
|
SystemStatus::~SystemStatus()
|
||||||
{
|
{
|
||||||
#if !defined(__ANDROID__)
|
#if !defined(__ANDROID__) && !defined(__FreeBSD__) && !defined(__HAIKU__)
|
||||||
mExitPolling = true;
|
mExitPolling = true;
|
||||||
|
|
||||||
if (mPollThread != nullptr && mPollThread->joinable()) {
|
if (mPollThread != nullptr && mPollThread->joinable()) {
|
||||||
|
|
Loading…
Reference in a new issue