This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <thread> | |
#include <future> | |
#include <exception> | |
#include <chrono> | |
#include <iostream> | |
class interrupt_flag | |
{ | |
std::atomic<bool> flag; | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::string S2(CString& CS) | |
{ | |
#ifdef _UNICODE | |
USES_CONVERSION; | |
std::string S = W2A(CS.GetBuffer()); | |
#else | |
std::string S = CS.GetBuffer(); | |
#endif | |
return S; | |
} |
NewerOlder