//  // // ##### #### # # -= Threadux =-  // //  # # # ## ## Intercaller.cpp  // //  # # # ##  // //  # # # ### Peforms inter-thread function and method calling  // //  # # # ## ##  // //  # #### # # R1 2004 by Markus Ewald  // //  // #include "Threadux/Intercaller.h" using namespace Threadux; void IntercallServer::enqueue(const Invocation &TheInvocation) { m_QueuedInvocations.push_back(TheInvocation); } void IntercallServer::flush() { while(!m_QueuedInvocations.empty()) { m_QueuedInvocations.front()(); m_QueuedInvocations.pop_front(); } } void IntercallServer::purge() { m_QueuedInvocations.clear(); }