38 while (_resetThread.joinable() && ! _resetThread.try_join_for(boost::chrono::milliseconds{100}))
50 std::unique_lock<std::recursive_timed_mutex> guard {
mutex};
65 std::unique_lock<std::recursive_timed_mutex> guard {
mutex};
67 QMetaObject::invokeMethod(
this,
"doReset", Qt::QueuedConnection);
75 QMetaObject::invokeMethod(
this,
"updateContent", Qt::QueuedConnection);
77 QWidget::setVisible(visible);
80 void RobotUnitWidgetBase::doReset()
82 std::unique_lock<std::recursive_timed_mutex> guard {
mutex};
88 if (!_resetThread.joinable() || _resetThread.try_join_for(boost::chrono::milliseconds{10}))
92 _resetThread = boost::thread
96 ARMARX_INFO <<
"Resetting of widget '" << objectName().toStdString() <<
"' started";
103 ARMARX_WARNING <<
"Resetting of widget '" << objectName().toStdString() <<
"' failed: "
109 QMetaObject::invokeMethod(
this,
"updateContent", Qt::QueuedConnection);
111 ARMARX_INFO <<
"Resetting of widget '" << objectName().toStdString() <<
"' done!";
121 QMetaObject::invokeMethod(
this,
"updateContent", Qt::QueuedConnection);
138 QMetaObject::invokeMethod(
this,
"updateContent", Qt::QueuedConnection);