Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Run only one GLib main event loop #23320

Merged
merged 10 commits into from
Nov 4, 2022
Prev Previous commit
Next Next commit
Remove not used class method
arkq committed Oct 27, 2022
commit fff58bbab729664c5429843a87325e05b37ea28f
12 changes: 0 additions & 12 deletions src/platform/Linux/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
@@ -46,11 +46,6 @@
#include <netinet/in.h>
#include <unistd.h>

#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif

using namespace ::chip::app::Clusters;

namespace chip {
@@ -214,12 +209,5 @@ void PlatformManagerImpl::_Shutdown()
Internal::GenericPlatformManagerImpl_POSIX<PlatformManagerImpl>::_Shutdown();
}

#if CHIP_WITH_GIO
GDBusConnection * PlatformManagerImpl::GetGDBusConnection()
{
return this->mpGDBusConnection.get();
}
#endif

} // namespace DeviceLayer
} // namespace chip
3 changes: 0 additions & 3 deletions src/platform/Linux/PlatformManagerImpl.h
Original file line number Diff line number Diff line change
@@ -50,9 +50,6 @@ class PlatformManagerImpl final : public PlatformManager, public Internal::Gener

public:
// ===== Platform-specific members that may be accessed directly by the application.
#if CHIP_WITH_GIO
GDBusConnection * GetGDBusConnection();
#endif

System::Clock::Timestamp GetStartTime() { return mStartTime; }

12 changes: 0 additions & 12 deletions src/platform/webos/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
@@ -46,11 +46,6 @@
#include <netinet/in.h>
#include <unistd.h>

#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif

using namespace ::chip::app::Clusters;

namespace chip {
@@ -203,12 +198,5 @@ void PlatformManagerImpl::_Shutdown()
Internal::GenericPlatformManagerImpl_POSIX<PlatformManagerImpl>::_Shutdown();
}

#if CHIP_WITH_GIO
GDBusConnection * PlatformManagerImpl::GetGDBusConnection()
{
return this->mpGDBusConnection.get();
}
#endif

} // namespace DeviceLayer
} // namespace chip
3 changes: 0 additions & 3 deletions src/platform/webos/PlatformManagerImpl.h
Original file line number Diff line number Diff line change
@@ -50,9 +50,6 @@ class PlatformManagerImpl final : public PlatformManager, public Internal::Gener

public:
// ===== Platform-specific members that may be accessed directly by the application.
#if CHIP_WITH_GIO
GDBusConnection * GetGDBusConnection();
#endif

System::Clock::Timestamp GetStartTime() { return mStartTime; }