Skip to content

Instantly share code, notes, and snippets.

#include <thread>
#include <future>
#include <exception>
#include <chrono>
#include <iostream>
class interrupt_flag
{
std::atomic<bool> flag;
public:
std::string S2(CString& CS)
{
#ifdef _UNICODE
USES_CONVERSION;
std::string S = W2A(CS.GetBuffer());
#else
std::string S = CS.GetBuffer();
#endif
return S;
}