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 8, 2023
1 parent 3288788 commit d1e178b
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 d1e178b

Please sign in to comment.