RenderThread::RenderThread(QObject *parent) : QThread(parent), renderprocess(NULL) { // Set options to defaults in case they are somehow not set earlier setFormat(); setFrameRange(); setSwitches(); // This is so that the render process actually starts in a new thread instead of 'run()' connect(this, SIGNAL(cli(QString,QStringList)), this, SLOT(executeRenderCommand(QString,QStringList))); }
int main(int argc, char **argv) { signal(SIGALRM, handle); declareTermiosCrap(); wiringPiSetup(); setPins(pinRed, pinGreen, pinBlue, pinWhite); setSwitches(); blinkLights(pinRed, pinGreen, pinBlue, pinWhite); repeatColors(); verify(); tcsetattr(0, TCSANOW, &initial_settings); return 0; }