No need for id in LockMap.

This commit is contained in:
Bartosz Taudul 2017-10-04 20:10:14 +02:00
parent a99fc01707
commit 87ae5eccde
2 changed files with 1 additions and 2 deletions

View File

@ -461,7 +461,7 @@ void View::ProcessLockAnnounce( const QueueLockAnnounce& ev )
auto it = m_pendingLocks.find( ev.id ); auto it = m_pendingLocks.find( ev.id );
std::unique_lock<std::mutex> lock( m_lock ); std::unique_lock<std::mutex> lock( m_lock );
auto& lockmap = m_lockMap.emplace( ev.id, LockMap { ev.id, ev.srcloc } ).first->second; auto& lockmap = m_lockMap.emplace( ev.id, LockMap { ev.srcloc } ).first->second;
if( it != m_pendingLocks.end() ) if( it != m_pendingLocks.end() )
{ {

View File

@ -46,7 +46,6 @@ private:
struct LockMap struct LockMap
{ {
uint64_t id;
uint64_t srcloc; uint64_t srcloc;
Vector<LockEvent*> timeline; Vector<LockEvent*> timeline;
std::unordered_set<uint64_t> threads; std::unordered_set<uint64_t> threads;