// ServerThreads.h: interface for the ServerThreads class. // ////////////////////////////////////////////////////////////////////// #pragma once #include namespace HM { class ThreadIdentifier; class ServerThreads { public: ServerThreads(); virtual ~ServerThreads(); bool AddThread(shared_ptr pThread); bool CloseThread(shared_ptr pThread); bool ExitAllThreads(); int GetThreadCount(); shared_ptr GetThreadByThreadID(int iID); private: std::set > current_connections_; CriticalSection crit_sec_; bool is_exiting_all_; }; }