We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40eafcf commit dd29ed5Copy full SHA for dd29ed5
src/libipc/platform/mutex_linux.h
@@ -37,7 +37,7 @@ class mutex {
37
}
38
39
bool valid() const noexcept {
40
- static const tmp[sizeof(pthread_mutex_t)] {};
+ static const char tmp[sizeof(pthread_mutex_t)] {};
41
return shm_.valid()
42
&& (mutex_ != nullptr)
43
&& (std::memcmp(tmp, mutex_, sizeof(pthread_mutex_t)) != 0);
src/libipc/platform/shm_linux.cpp
@@ -90,7 +90,7 @@ std::uint32_t get_ref(id_t id) {
90
if (ii->mem_ == nullptr || ii->size_ == 0) {
91
return 0;
92
93
- return acc_of(mem, ii->size_).load(std::memory_order_acquire);
+ return acc_of(ii->mem_, ii->size_).load(std::memory_order_acquire);
94
95
96
void sub_ref(id_t id) {
0 commit comments