Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 74adfd5f

Přidáno uživatelem Jakub Hejman před téměř 4 roky(ů)

Server cleanup

Zobrazit rozdíly:

deltarobot/curvedataserver.h
99 99

  
100 100
    void sendMessageToAllConnected(QByteArray &message);
101 101

  
102
    void threadFunction();
103

  
104 102
    QTcpServer _server;
105
    std::thread _pingThread;
106

  
107
    /**
108
     * A flag that can be switched to `false` when the application should end, in order to gracefully stop the ping
109
     * thread.
110
     */
111
    volatile bool _threadIsRunning = true;
112 103

  
113 104
    std::recursive_mutex _socketsLock;
114 105
    QList<Client> _sockets;

Také k dispozici: Unified diff