When I try to export a pin immediately after starting the QGpioWatcher thread I encounter a segfault when the watcher appends the gpio to the pin list.
My workaround is to wait a while, using QThread::msleep(), after starting the thread, before I start to export pins.
I tried to wait for the isRunning() flag, but it is not enough.
When I try to export a pin immediately after starting the QGpioWatcher thread I encounter a segfault when the watcher appends the gpio to the pin list.
My workaround is to wait a while, using
QThread::msleep(), after starting the thread, before I start to export pins.I tried to wait for the
isRunning()flag, but it is not enough.