Removed unused variables.

This commit is contained in:
hiker 2016-02-05 16:09:31 +11:00
parent 2d0fd0260e
commit 89979a46f5
2 changed files with 0 additions and 7 deletions

View File

@ -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);

View File

@ -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();