Skip to content

Commit

Permalink
Fix static timing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eggdai committed Nov 6, 2024
1 parent 91444e9 commit ac8b35e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bq_common/platform/posix_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ namespace bq {
}
});

static bq::hash_map<windows_file_node_info, file_open_mode_enum>& get_file_exclusive_cache()
static bq::hash_map<posix_file_node_info, file_open_mode_enum>& get_file_exclusive_cache()
{
static bq::hash_map<windows_file_node_info, file_open_mode_enum> file_exclusive_cache;
static bq::hash_map<posix_file_node_info, file_open_mode_enum> file_exclusive_cache;
return file_exclusive_cache;
}

Expand All @@ -304,7 +304,7 @@ namespace bq {
return false;
}
bq::platform::mutex& file_exclusive_mutex = get_file_exclusive_mutex();
bq::hash_map<windows_file_node_info, file_open_mode_enum>& file_exclusive_cache = get_file_exclusive_cache();
bq::hash_map<posix_file_node_info, file_open_mode_enum>& file_exclusive_cache = get_file_exclusive_cache();
bq::platform::scoped_mutex lock(file_exclusive_mutex);
posix_file_node_info node_info;
node_info.ino = file_info.st_ino;
Expand Down

0 comments on commit ac8b35e

Please sign in to comment.