Browse Source

Lock memory of IPC bridged data

tags/1.9.7
falkTX 8 years ago
parent
commit
6ce690861d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/utils/CarlaShmUtils.hpp

+ 1
- 1
source/utils/CarlaShmUtils.hpp View File

@@ -194,7 +194,7 @@ void* carla_shm_map(carla_shm_t& shm, const std::size_t size) noexcept
CARLA_SAFE_ASSERT_RETURN(ret == 0, nullptr); CARLA_SAFE_ASSERT_RETURN(ret == 0, nullptr);
} }


void* const ptr(::mmap(nullptr, size, PROT_READ|PROT_WRITE, MAP_SHARED, shm.fd, 0));
void* const ptr(::mmap(nullptr, size, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_LOCKED, shm.fd, 0));


if (ptr == nullptr) if (ptr == nullptr)
{ {


Loading…
Cancel
Save