#ifndef SMXHelperThread_h #define SMXHelperThread_h #include "Helpers.h" #include "SMXThread.h" #include #include #include using namespace std; namespace SMX { class SMXHelperThread: public SMXThread { public: SMXHelperThread(const string &sThreadName); // Call func asynchronously from the helper thread. void RunInThread(function func); private: void ThreadMain(); // Helper threads use their independent lock. SMX::Mutex m_Lock; vector> m_FunctionsToCall; }; } #endif