Skip to content

Commit

Permalink
iox-eclipse-iceoryx#605 remove mutex (wrong merge resolution), rename…
Browse files Browse the repository at this point in the history
… files

Signed-off-by: Marika Lehmann <[email protected]>
  • Loading branch information
FerdinandSpitzschnueffler committed Mar 24, 2021
1 parent dd8cd49 commit 0052d1b
Show file tree
Hide file tree
Showing 38 changed files with 64 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define IOX_POSH_MEPOO_CHUNK_MANAGEMENT_HPP

#include "iceoryx_utils/cxx/helplets.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

#include <atomic>
#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "iceoryx_utils/cxx/helplets.hpp"
#include "iceoryx_utils/internal/concurrent/loffli.hpp"
#include "iceoryx_utils/internal/posix_wrapper/shared_memory_object/allocator.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

#include <atomic>
#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "iceoryx_posh/mepoo/memory_info.hpp"
#include "iceoryx_posh/mepoo/mepoo_config.hpp"
#include "iceoryx_utils/error_handling/error_handling.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

namespace iox
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "iceoryx_posh/internal/mepoo/chunk_management.hpp"
#include "iceoryx_posh/internal/mepoo/mem_pool.hpp"
#include "iceoryx_posh/mepoo/chunk_header.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

namespace iox
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "iceoryx_utils/cxx/vector.hpp"
#include "iceoryx_utils/error_handling/error_handling.hpp"
#include "iceoryx_utils/internal/posix_wrapper/mutex.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

#include <cstdint>
#include <mutex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "iceoryx_posh/internal/popo/building_blocks/condition_notifier.hpp"
#include "iceoryx_posh/internal/popo/building_blocks/condition_variable_data.hpp"
#include "iceoryx_utils/cxx/variant_queue.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"
#include "iceoryx_utils/posix_wrapper/semaphore.hpp"

namespace iox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define IOX_POSH_POPO_BUILDING_BLOCKS_CHUNK_QUEUE_TYPES_HPP

#include "iceoryx_posh/internal/mepoo/chunk_management.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

namespace iox
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "iceoryx_posh/internal/popo/used_chunk_list.hpp"
#include "iceoryx_posh/mepoo/memory_info.hpp"
#include "iceoryx_utils/cxx/helplets.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

namespace iox
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "iceoryx_posh/iceoryx_posh_types.hpp"
#include "iceoryx_posh/internal/capro/capro_message.hpp"
#include "iceoryx_posh/internal/popo/building_blocks/typed_unique_id.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

#include <atomic>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "iceoryx_posh/internal/popo/building_blocks/chunk_receiver_data.hpp"
#include "iceoryx_posh/internal/popo/building_blocks/chunk_sender_data.hpp"
#include "iceoryx_posh/internal/popo/building_blocks/locking_policy.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

#include <cstdint>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "iceoryx_posh/internal/mepoo/chunk_management.hpp"
#include "iceoryx_posh/internal/mepoo/shared_chunk.hpp"
#include "iceoryx_posh/mepoo/chunk_header.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

#include <array>
#include <atomic>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ class ProcessManager : public ProcessManagerInterface
mepoo::SegmentManager<>* m_segmentManager{nullptr};
mepoo::MemoryManager* m_introspectionMemoryManager{nullptr};
rp::BaseRelativePointer::id_t m_mgmtSegmentId{rp::BaseRelativePointer::NULL_POINTER_ID};
mutable std::mutex m_mutex;

ProcessList_t m_processList;
ProcessIntrospectionType* m_processIntrospection{nullptr};
/// @brief is currently used for the internal publisher/subscriber ports
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/include/iceoryx_posh/internal/roudi/roudi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "iceoryx_posh/roudi/roudi_app.hpp"
#include "iceoryx_utils/cxx/generic_raii.hpp"
#include "iceoryx_utils/internal/concurrent/smart_lock.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"
#include "iceoryx_utils/platform/file.hpp"
#include "iceoryx_utils/posix_wrapper/posix_access_rights.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "iceoryx_utils/cxx/deadline_timer.hpp"
#include "iceoryx_utils/cxx/optional.hpp"
#include "iceoryx_utils/internal/posix_wrapper/unix_domain_socket.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"
#include "iceoryx_utils/internal/units/duration.hpp"
#include "iceoryx_utils/platform/fcntl.hpp"
#include "iceoryx_utils/platform/stat.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "iceoryx_utils/cxx/optional.hpp"
#include "iceoryx_utils/cxx/vector.hpp"
#include "iceoryx_utils/internal/posix_wrapper/shared_memory_object.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp"


namespace iox
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/source/roudi/memory/memory_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "iceoryx_posh/roudi/memory/memory_block.hpp"

#include "iceoryx_utils/cxx/helplets.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp"

/// @todo this should probably be moved to iceoryx_utils/allocator/bump_allocator.hpp
#include "iceoryx_utils/internal/posix_wrapper/shared_memory_object/allocator.hpp"
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/source/roudi/process_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "iceoryx_utils/cxx/deadline_timer.hpp"
#include "iceoryx_utils/cxx/smart_c.hpp"
#include "iceoryx_utils/cxx/vector.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"
#include "iceoryx_utils/platform/signal.hpp"
#include "iceoryx_utils/platform/types.hpp"
#include "iceoryx_utils/platform/wait.hpp"
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/source/runtime/posh_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "iceoryx_posh/runtime/port_config_info.hpp"
#include "iceoryx_utils/cxx/convert.hpp"
#include "iceoryx_utils/cxx/helplets.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp"
#include "iceoryx_utils/posix_wrapper/timer.hpp"

#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "iceoryx_utils/error_handling/error_handling.hpp"
#include "iceoryx_utils/internal/posix_wrapper/shared_memory_object.hpp"
#include "iceoryx_utils/internal/posix_wrapper/shared_memory_object/allocator.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp"
#include "test.hpp"
#include "testutils/test_definitions.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "iceoryx_posh/internal/mepoo/shared_pointer.hpp"
#include "iceoryx_posh/mepoo/chunk_header.hpp"
#include "iceoryx_utils/internal/posix_wrapper/shared_memory_object/allocator.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp"
#include "test.hpp"

using namespace ::testing;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "iceoryx_posh/roudi/memory/memory_provider.hpp"

#include "iceoryx_utils/internal/relocatable_pointer/base_relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp"

#include "mocks/roudi_memory_block_mock.hpp"
#include "mocks/roudi_memory_provider_mock.hpp"
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/test/moduletests/test_roudi_portmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "iceoryx_posh/internal/roudi/port_manager.hpp"
#include "iceoryx_posh/roudi/memory/iceoryx_roudi_memory_manager.hpp"
#include "iceoryx_utils/cxx/generic_raii.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp"
#include "iceoryx_utils/posix_wrapper/posix_access_rights.hpp"

#include <cstdint>
Expand Down
4 changes: 2 additions & 2 deletions iceoryx_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ add_library(iceoryx_utils
source/posix_wrapper/posix_access_rights.cpp
source/posix_wrapper/thread.cpp
source/units/duration.cpp
source/relocatable_pointer/base_relative_ptr.cpp
source/relocatable_pointer/base_relocatable_ptr.cpp
source/relocatable_pointer/base_relative_pointer.cpp
source/relocatable_pointer/base_relocatable_pointer.cpp
)

add_library(iceoryx_utils::iceoryx_utils ALIAS iceoryx_utils)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define IOX_UTILS_CONCURRENT_LOFFLI_HPP

#include "iceoryx_utils/cxx/helplets.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

#include <atomic>
#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_PTR_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_PTR_HPP
#ifndef IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_POINTER_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_POINTER_HPP

#include <atomic>
#include <limits>
Expand Down Expand Up @@ -76,6 +76,6 @@ class AtomicRelocatablePointer
} // namespace rp
} // namespace iox

#include "iceoryx_utils/internal/relocatable_pointer/atomic_relocatable_ptr.inl"
#include "iceoryx_utils/internal/relocatable_pointer/atomic_relocatable_pointer.inl"

#endif // IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_PTR_HPP
#endif // IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_POINTER_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_PTR_INL
#define IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_PTR_INL
#ifndef IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_POINTER_INL
#define IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_POINTER_INL

#include "iceoryx_utils/internal/relocatable_pointer/atomic_relocatable_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/atomic_relocatable_pointer.hpp"

namespace iox
{
Expand Down Expand Up @@ -81,4 +81,4 @@ AtomicRelocatablePointer<T>::computeOffset(const void* ptr) const noexcept
} // namespace rp
} // namespace iox

#endif // IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_PTR_INL
#endif // IOX_UTILS_RELOCATABLE_POINTER_ATOMIC_RELOCATABLE_POINTER_INL
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_BASE_RELATIVE_PTR_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_BASE_RELATIVE_PTR_HPP
#ifndef IOX_UTILS_RELOCATABLE_POINTER_BASE_RELATIVE_POINTER_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_BASE_RELATIVE_POINTER_HPP

#include "pointer_repository.hpp"

Expand Down Expand Up @@ -180,5 +180,5 @@ class BaseRelativePointer
} // namespace rp
} // namespace iox

#endif // IOX_UTILS_RELOCATABLE_POINTER_BASE_RELATIVE_PTR_HPP
#endif // IOX_UTILS_RELOCATABLE_POINTER_BASE_RELATIVE_POINTER_HPP

Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_BASE_RELOCATABLE_PTR_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_BASE_RELOCATABLE_PTR_HPP
#ifndef IOX_UTILS_RELOCATABLE_POINTER_BASE_RELOCATABLE_POINTER_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_BASE_RELOCATABLE_POINTER_HPP

#include <cstdint>
#include <limits>
Expand Down Expand Up @@ -111,4 +111,5 @@ class BaseRelocatablePointer
} // namespace rp
} // namespace iox

#endif // IOX_UTILS_RELOCATABLE_POINTER_BASE_RELOCATABLE_PTR_HPP
#endif // IOX_UTILS_RELOCATABLE_POINTER_BASE_RELOCATABLE_POINTER_HPP

Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_PTR_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_PTR_HPP
#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_POINTER_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_POINTER_HPP

#include "base_relative_ptr.hpp"
#include "base_relative_pointer.hpp"

#include <cstdint>
#include <iostream>
Expand Down Expand Up @@ -103,6 +103,7 @@ class RelativePointer : public BaseRelativePointer
} // namespace rp
} // namespace iox

#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.inl"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.inl"

#endif // IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_POINTER_HPP

#endif // IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_PTR_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_PTR_INL
#define IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_PTR_INL
#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_POINTER_INL
#define IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_POINTER_INL

#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"

namespace iox
{
Expand Down Expand Up @@ -118,5 +118,5 @@ inline bool RelativePointer<T>::operator!=(T* const ptr) const noexcept
} // namespace rp
} // namespace iox

#endif // IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_PTR_INL
#endif // IOX_UTILS_RELOCATABLE_POINTER_RELATIVE_POINTER_INL

Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_PTR_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_PTR_HPP
#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_POINTER_HPP
#define IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_POINTER_HPP

#include "base_relocatable_ptr.hpp"
#include "base_relocatable_pointer.hpp"

namespace iox
{
Expand Down Expand Up @@ -77,6 +77,6 @@ class RelocatablePointer : public BaseRelocatablePointer
} // namespace rp
} // namespace iox

#include "iceoryx_utils/internal/relocatable_pointer/relocatable_ptr.inl"
#include "iceoryx_utils/internal/relocatable_pointer/relocatable_pointer.inl"

#endif // IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_PTR_HPP
#endif // IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_POINTER_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_PTR_INL
#define IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_PTR_INL
#ifndef IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_POINTER_INL
#define IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_POINTER_INL

#include "iceoryx_utils/internal/relocatable_pointer/relocatable_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relocatable_pointer.hpp"

namespace iox
{
Expand Down Expand Up @@ -96,5 +96,5 @@ inline RelocatablePointer<T>::operator T*() const noexcept
} // namespace rp
} // namespace iox

#endif // IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_PTR_INL
#endif // IOX_UTILS_RELOCATABLE_POINTER_RELOCATABLE_POINTER_INL

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "iceoryx_utils/cxx/smart_c.hpp"
#include "iceoryx_utils/cxx/string.hpp"
#include "iceoryx_utils/design_pattern/creation.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_ptr.hpp"
#include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"
#include "iceoryx_utils/internal/units/duration.hpp"
#include "iceoryx_utils/platform/fcntl.hpp"
#include "iceoryx_utils/platform/semaphore.hpp"
Expand Down
Loading

0 comments on commit 0052d1b

Please sign in to comment.