Removed unused variables.
This commit is contained in:
parent
2d0fd0260e
commit
89979a46f5
@ -50,13 +50,11 @@ void* ProtocolManager::mainLoop(void* data)
|
||||
VS::setThreadName("ProtocolManager");
|
||||
|
||||
ProtocolManager* manager = static_cast<ProtocolManager*>(data);
|
||||
manager->m_asynchronous_thread_running = true;
|
||||
while(manager && !manager->m_exit.getAtomic())
|
||||
{
|
||||
manager->asynchronousUpdate();
|
||||
StkTime::sleep(2);
|
||||
}
|
||||
manager->m_asynchronous_thread_running = false;
|
||||
return NULL;
|
||||
} // protocolManagerAsynchronousUpdate
|
||||
|
||||
@ -309,7 +307,6 @@ void ProtocolManager::requestTerminate(Protocol* protocol)
|
||||
*/
|
||||
void ProtocolManager::startProtocol(Protocol *protocol)
|
||||
{
|
||||
// assert(protocol_info.m_state == PROTOCOL_STATE_INITIALISING);
|
||||
// add the protocol to the protocol vector so that it's updated
|
||||
m_protocols.lock();
|
||||
pthread_mutex_lock(&m_asynchronous_protocols_mutex);
|
||||
|
@ -144,12 +144,8 @@ private:
|
||||
/*! Used to ensure that the protocol vector is used thread-safely. */
|
||||
pthread_mutex_t m_asynchronous_protocols_mutex;
|
||||
|
||||
/*! Update thread.*/
|
||||
pthread_t* m_update_thread;
|
||||
/*! Asynchronous update thread.*/
|
||||
pthread_t* m_asynchronous_update_thread;
|
||||
/*! True if the thread is running. */
|
||||
bool m_asynchronous_thread_running;
|
||||
|
||||
ProtocolManager();
|
||||
virtual ~ProtocolManager();
|
||||
|
Loading…
Reference in New Issue
Block a user