Skip to content

Commit

Permalink
Issue #143: Added some missing synchronisation objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbert Schlia committed Feb 25, 2023
1 parent 246960a commit 2454505
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/buffer.cc
Expand Up @@ -76,6 +76,8 @@ int Buffer::openio(LPVIRTUALFILE virtualfile)

bool Buffer::open_file(uint32_t segment_no, uint32_t flags, size_t defaultsize)
{
std::lock_guard<std::recursive_mutex> lock_mutex(m_mutex);

uint32_t index = segment_no;
if (index)
{
Expand Down Expand Up @@ -132,6 +134,8 @@ bool Buffer::open_file(uint32_t segment_no, uint32_t flags, size_t defaultsize)

bool Buffer::close_file(uint32_t segment_no, uint32_t flags)
{
std::lock_guard<std::recursive_mutex> lock_mutex(m_mutex);

uint32_t index = segment_no;
if (index)
{
Expand Down

0 comments on commit 2454505

Please sign in to comment.