I have a static function:, static void lancerServeur(std::atomic<bool>& boolServer)this function is static, because I run it in the stream, but because of this I can not emit a signal in this function. Here is what I am trying to do:
void MainWindow::lancerServeur(std::atomic<bool>& boolServer){
serveur s;
StructureSupervision::T_StructureSupervision* bufferStructureRecu;
while(boolServer){
bufferStructureRecu = s.receiveDataUDP();
if(bufferStructureRecu->SystemData._statutGroundFlight != 0){
emit this->signal_TrameRecu(bufferStructureRecu);
}
}
}
Is there any way to emit my signal?
Thank.
source
share