R-Type  2
Doom but in better
Loading...
Searching...
No Matches
ThreadCapsule.hpp File Reference
#include <string>
#include <vector>
#include <memory>
#include <atomic>
#include <thread>
#include <cstdint>
#include "GUI/Network/NetworkManager.hpp"
Include dependency graph for ThreadCapsule.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GUI::Network::ThreadCapsule
 

Namespaces

namespace  GUI
 
namespace  GUI::Network
 

Macros

#define ENSURE_THREAD_ALIVE(method)
 

Macro Definition Documentation

◆ ENSURE_THREAD_ALIVE

#define ENSURE_THREAD_ALIVE ( method)
Value:
if (!isThreadAlive()) { \
PRETTY_ERROR << "No active thread for " << method << std::endl; \
throw CustomExceptions::NoActiveNetworkThread("<No running thread for " + std::string(method) + ">"); \
}
#define PRETTY_ERROR
Error log with details and colour.
This is the class in charge of informing the user that the program could not find any active threads ...
Definition No.hpp:939

Definition at line 19 of file ThreadCapsule.hpp.