fix emulator lcd/calculator thread startup race
This commit is contained in:
parent
8da85b8b6d
commit
836d4fc122
@ -8,12 +8,12 @@ Calculator::Calculator(QObject *parent) :
|
||||
lcd_thread(*this),
|
||||
m_lcdText("calculator initial text")
|
||||
{
|
||||
qDebug() << "Starting calculator thread";
|
||||
calc_thread.start();
|
||||
qDebug() << "calculator thread started";
|
||||
qDebug() << "Starting lcd thread";
|
||||
lcd_thread.start();
|
||||
qDebug() << "lcd thread started";
|
||||
qDebug() << "Starting calculator thread";
|
||||
calc_thread.start();
|
||||
qDebug() << "calculator thread started";
|
||||
|
||||
updateLcd();
|
||||
}
|
||||
|
@ -172,7 +172,10 @@ int main()
|
||||
ExpBuf[0] = 0;
|
||||
ExpBuf[1] = 0;
|
||||
|
||||
LCD_OutString("STC RPN Calculator v1.00", 32);
|
||||
LCD_OutString("STC RPN Calculator v1.01", 32);
|
||||
#ifdef DESKTOP
|
||||
LcdAvailable.release();
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_UPTIME
|
||||
i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user