Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions code/gpios.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct gpiod_line;

namespace mandeye
{

using namespace hardware;
// forward declaration of cppgpio type that I want to keep inside compliation unit

Expand Down Expand Up @@ -108,7 +109,8 @@ class GpioClient
std::mutex m_lock;
std::atomic<bool> m_running{true};
};
static std::mutex gpioClientPtrLock;
static std::shared_ptr<GpioClient> gpioClientPtr;

inline std::mutex gpioClientPtrLock;
inline std::shared_ptr<GpioClient> gpioClientPtr;

} // namespace mandeye
Loading