mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 23:55:35 -04:00
removed data race in QObject::connect() vs. NotifyQt signals by enabling notification signals only after GUI is created
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5169 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
14c1f9f599
commit
c0088f3e8f
2 changed files with 135 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <retroshare/rsiface.h>
|
||||
#include <retroshare/rsturtle.h>
|
||||
#include <QObject>
|
||||
#include <QMutex>
|
||||
//#include <QMutex>
|
||||
|
||||
#include <string>
|
||||
|
@ -27,6 +28,7 @@ class NotifyQt: public QObject, public NotifyBase
|
|||
public:
|
||||
static NotifyQt *Create ();
|
||||
static NotifyQt *getInstance ();
|
||||
void enable() ;
|
||||
|
||||
virtual ~NotifyQt() { return; }
|
||||
|
||||
|
@ -122,6 +124,9 @@ class NotifyQt: public QObject, public NotifyBase
|
|||
// QMutex runningToasterMutex; // for lock of the running toaster list
|
||||
QList<Toaster*> runningToasterList;
|
||||
|
||||
bool _enabled ;
|
||||
QMutex _mutex ;
|
||||
|
||||
// void displayNeighbours();
|
||||
// void displayFriends();
|
||||
// void displayDirectories();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue