1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include "common.h" int CSteamProto::PollStatus() { Sleep(2000); return 0; } void CSteamProto::PollingThread(void*) { debugLogA("CSteamProto::PollingThread: entering"); while (!m_bTerminated) if (PollStatus() == -1) break; m_hPollingThread = NULL; debugLogA("CSteamProto::PollingThread: leaving"); }