Builds on windows again
This commit is contained in:
parent
33cf39b799
commit
bebb3391c3
160 changed files with 138 additions and 117 deletions
24
pglab/ASyncWindow.h
Normal file
24
pglab/ASyncWindow.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef ASYNCWINDOW_H
|
||||
#define ASYNCWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "tsqueue.h"
|
||||
|
||||
class ASyncWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ASyncWindow(QWidget *parent);
|
||||
/* Meant to be called from other threads to pass a code block
|
||||
* that has to be executed in the context of the thread of the window.
|
||||
*/
|
||||
void QueueTask(TSQueue::t_Callable c);
|
||||
private:
|
||||
TSQueue m_taskQueue;
|
||||
private slots:
|
||||
|
||||
void processCallableQueue();
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // ASYNCWINDOW_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue