0

Add comment about lock_ in MidiManager::AccumulateMidiBytesSent

BUG=564501

Review URL: https://codereview.chromium.org/1503213002

Cr-Commit-Position: refs/heads/master@{#363721}
This commit is contained in:
agoode
2015-12-07 19:45:54 -08:00
committed by Commit bot
parent fe849a3e64
commit 5e766f5070

@ -153,6 +153,11 @@ void MidiManager::AccumulateMidiBytesSent(MidiManagerClient* client, size_t n) {
if (clients_.find(client) == clients_.end())
return;
// Continue to hold lock_ here in case another thread is currently doing
// EndSession.
// Note that if we are in EndSession, then a destructor is being called and
// it isn't really safe to call this method. But we don't have another way to
// check this right now.
client->AccumulateMidiBytesSent(n);
}