Skip to content

Commit

Permalink
[XrdApps] xrdreplay: actually lock the mutex when reclaiming memory
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Mar 21, 2023
1 parent 2860b43 commit e115325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdApps/XrdClRecordPlugin/XrdClReplay.cc
Expand Up @@ -87,7 +87,7 @@ class BufferPool
//--------------------------------------------------------------------------
void Reclaim( size_t length )
{
std::unique_lock<std::mutex> lck;
std::unique_lock<std::mutex> lck(mtx);
available += length;
cv.notify_all();
}
Expand Down

0 comments on commit e115325

Please sign in to comment.