mirror of
https://github.com/c3d/DB48X-on-DM42.git
synced 2024-09-28 03:20:53 +02:00
62baa7d25e
I wanted to do something smart with QTimer, but it fails because they interact with QT's event loop, making timers across threads annoyingly difficult. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
#ifndef SIM_RPL_H
|
|
#define SIM_RPL_H
|
|
// ****************************************************************************
|
|
// sim-rpl.h DB48X project
|
|
// ****************************************************************************
|
|
//
|
|
// File Description:
|
|
//
|
|
// The thread running the RPL program
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
// ****************************************************************************
|
|
// (C) 2022 Christophe de Dinechin <christophe@dinechin.org>
|
|
// This software is licensed under the terms outlined in LICENSE.txt
|
|
// ****************************************************************************
|
|
// This file is part of DB48X.
|
|
//
|
|
// DB48X is free software: you can redistribute it and/or modify
|
|
// it under the terms outlined in the LICENSE.txt file
|
|
//
|
|
// DB48X is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
// ****************************************************************************
|
|
|
|
#include <QThread>
|
|
#include <QTimer>
|
|
|
|
class RPLThread:public QThread
|
|
// ----------------------------------------------------------------------------
|
|
// Thread running the RPL program
|
|
// ----------------------------------------------------------------------------
|
|
{
|
|
public:
|
|
RPLThread(QObject * parent);
|
|
~RPLThread();
|
|
|
|
void run();
|
|
};
|
|
|
|
#endif // RPLTHREAD_H
|