Skip to content

Commit

Permalink
Fix shared memory lock (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 authored May 18, 2021
1 parent 984d0b9 commit f491b3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ if(UCLIENT_PROFILE_CUSTOM_TRANSPORT)
list(APPEND _transport_src src/c/profile/transport/custom/custom_transport.c)
endif()

if(UCLIENT_PROFILE_MULTITHREAD)
set(UCLIENT_PROFILE_SHARED_MEMORY ON)
endif()

if(UCLIENT_PROFILE_SHARED_MEMORY)
set(UCLIENT_PROFILE_MATCHING ON)
endif()
Expand Down
1 change: 1 addition & 0 deletions src/c/profile/shared_memory/shared_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ void uxr_prepare_shared_memory(
ssize_t entity_index = uxr_shared_memory_get_entity_index(session, &entity_id);
if (-1 == entity_index)
{
UXR_UNLOCK(&uxr_sm_map.lock);
return;
}

Expand Down

0 comments on commit f491b3d

Please sign in to comment.