Browse Source

Misc

tags/1.9.4
falkTX 10 years ago
parent
commit
61c03055ba
2 changed files with 3 additions and 4 deletions
  1. +2
    -3
      source/utils/CarlaShmUtils.hpp
  2. +1
    -1
      source/utils/CarlaThread.hpp

+ 2
- 3
source/utils/CarlaShmUtils.hpp View File

@@ -106,7 +106,7 @@ void carla_shm_close(shm_t& shm)
CARLA_SAFE_ASSERT_RETURN(carla_is_shm_valid(shm),);

#ifdef CARLA_OS_WIN
CARLA_SAFE_ASSERT_RETURN(shm.map == nullptr,);
CARLA_SAFE_ASSERT(shm.map == nullptr);

CloseHandle(shm.shm);
shm.shm = nullptr;
@@ -127,8 +127,7 @@ void* carla_shm_map(shm_t& shm, const size_t size)

HANDLE map = CreateFileMapping(shm.shm, NULL, PAGE_READWRITE, size, size, NULL);

if (map == nullptr)
return nullptr;
CARLA_SAFE_ASSERT_RETURN((map != nullptr, nullptr);

HANDLE ptr = MapViewOfFile(map, FILE_MAP_COPY, 0, 0, size);



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

@@ -239,7 +239,7 @@ private:
/*
* Copy our pthread type to another var.
*/
void _copyTo(volatile pthread_t& handle) noexcept
void _copyTo(volatile pthread_t& handle) const noexcept
{
#ifdef CARLA_OS_WIN
handle.p = fHandle.p;


Loading…
Cancel
Save