Compiles again.

This commit is contained in:
2026-01-02 01:52:48 +01:00
parent fc5ab611bd
commit acbd80c446
5 changed files with 14 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ void BCTransmitter::onToggleConnectionState( bool connect )
}
void BCTransmitter::enqueueValueOp( const BCValue& value)
void BCTransmitter::enqueueValueOp( const BCValuePtr value)
{
// Hier sind wir noch in GUI Thread
QMutexLocker locker(&_mutex);
@@ -98,7 +98,7 @@ void BCTransmitter::processValueOp()
while (true)
{
BCValue* currentValue{};
BCValuePtr value{};
{
QMutexLocker locker(&_mutex);
if (_valueQueue.isEmpty())
@@ -106,15 +106,16 @@ void BCTransmitter::processValueOp()
_isBusy = false;
break; // Schleife verlassen, warten auf neue Events
}
//currentValue =_valueQueue.dequeue();
value =_valueQueue.dequeue();
} // Mutex wird hier freigegeben! WICHTIG: Execute ohne Lock!
/*
// Abkürzung
const BCValue& value = *currentValue;
//const BCValue& value = *currentValue;
// Value ist 'under construction'
//emit valueUpdated( val.deviceID, val.indexRow, BCValue::State::Locked );
/*
if( opID == BCValue::OpID::ReadValue )
{
QString result = currentValue->readRawValueX( *this );
@@ -124,7 +125,8 @@ void BCTransmitter::processValueOp()
{
currentValue->writeRawValueX( *this );
}
*/
*/
emit valueUpdated( value->deviceID, value->indexRow, BCValue::State::InSync, "fitze!");
// __fix
bc::processEventsFor(50);