iw4x-client/src/Components/Modules/Discovery.hpp
momo5502 80e88f1572 [General] Fix a few memory leaks in threads
Destroying threads past when uninitializing the library is illegal
2017-01-24 06:32:04 +01:00

26 lines
422 B
C++

#pragma once
namespace Components
{
class Discovery : public Component
{
public:
Discovery();
~Discovery();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() override { return "Discovery"; };
#endif
void preDestroy() override;
static void Perform();
private:
static bool IsTerminating;
static bool IsPerforming;
static std::thread Thread;
static std::string Challenge;
};
}