Removed unnecessary lock.
This commit is contained in:
parent
d78c1b3272
commit
ef8c04e117
@ -388,7 +388,6 @@ void ProtocolManager::terminateProtocol(Protocol *protocol)
|
||||
*/
|
||||
bool ProtocolManager::sendEvent(EventProcessingInfo* event, bool synchronous)
|
||||
{
|
||||
m_protocols.lock();
|
||||
unsigned int index = 0;
|
||||
while(index < event->m_protocols_ids.size())
|
||||
{
|
||||
@ -407,7 +406,6 @@ bool ProtocolManager::sendEvent(EventProcessingInfo* event, bool synchronous)
|
||||
else // !result
|
||||
index++;
|
||||
}
|
||||
m_protocols.unlock();
|
||||
|
||||
if (event->m_protocols_ids.size() == 0 ||
|
||||
(StkTime::getTimeSinceEpoch()-event->m_arrival_time) >= TIME_TO_KEEP_EVENTS)
|
||||
|
Loading…
Reference in New Issue
Block a user