Skip to content

Commit

Permalink
iox-eclipse-iceoryx#70 fix some naming
Browse files Browse the repository at this point in the history
Signed-off-by: Kraus Mathias (CC-AD/ESW1) <mathias.kraus2@de.bosch.com>
  • Loading branch information
elBoberido committed Mar 24, 2020
1 parent 367e3af commit ccdaff1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions iceoryx_posh/source/popo/receiver_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,13 @@ SubscribeState ReceiverPort::getSubscribeState() const

bool ReceiverPort::getChunk(const mepoo::ChunkHeader*& f_chunkHeader) noexcept
{
// Create tuple on stack in order to check the visibiltyIndex
DeliveryFiFo::ChunkManagementTransport l_tuple;
// Create ChunkManagementTransport on stack in order to check the visibiltyIndex
DeliveryFiFo::ChunkManagementTransport chunkTransport;

if (getMembers()->m_deliveryFiFo.pop(l_tuple))
if (getMembers()->m_deliveryFiFo.pop(chunkTransport))
{
auto chunkManagement = iox::relative_ptr<mepoo::ChunkManagement>(l_tuple.m_chunkOffset, l_tuple.m_segmentId);
auto chunkManagement =
iox::relative_ptr<mepoo::ChunkManagement>(chunkTransport.m_chunkOffset, chunkTransport.m_segmentId);
mepoo::SharedChunk l_chunk(chunkManagement);

// store the chunk that is provided to the user side
Expand Down Expand Up @@ -286,7 +287,7 @@ posix::Semaphore* ReceiverPort::GetShmSemaphore()
{
if (getMembers()->m_shmSemaphore.has_error())
{
getMembers()->m_shmSemaphore = std::move(posix::Semaphore::create(&getMembers()->m_shmSemaphoreHandle, 0));
getMembers()->m_shmSemaphore = posix::Semaphore::create(&getMembers()->m_shmSemaphoreHandle, 0);
if (getMembers()->m_shmSemaphore.has_error())
{
return nullptr;
Expand Down

0 comments on commit ccdaff1

Please sign in to comment.