Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iox #25 service discovery for new building blocks #310

Conversation

elfenpiff
Copy link
Contributor

No description provided.

Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
Signed-off-by: Eltzschig Christian (CC-AD/ESW1) <christian.eltzschig2@de.bosch.com>
Signed-off-by: Eltzschig Christian (CC-AD/ESW1) <christian.eltzschig2@de.bosch.com>
Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
…ods so that the user has a chance to perform a reasonable error handling

Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
…tional argument shows what the ctor is really doing

Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
Signed-off-by: Ithier Jeff (CC-AD/EYF1) <jeff.ithier@de.bosch.com>
Signed-off-by: Eltzschig Christian (CC-AD/ESW1) <christian.eltzschig2@de.bosch.com>
Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
…nto a doxygen comment

Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
budrus
budrus previously approved these changes Sep 29, 2020
mossmaurice
mossmaurice previously approved these changes Sep 30, 2020
@@ -89,12 +89,47 @@ void WaitSet::detachAllConditions() noexcept

WaitSet::ConditionVector WaitSet::timedWait(const units::Duration timeout) noexcept
{
return waitAndReturnFulfilledConditions<WaitPolicy::TIMED_WAIT>(cxx::make_optional<units::Duration>(timeout));
return waitAndReturnFulfilledConditions([this, timeout] { return !m_conditionVariableWaiter.timedWait(timeout); });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@@ -47,7 +47,7 @@ class ShutdownManager
static std::atomic_bool s_shutdownRequested;
ShutdownManager() = default;
};
iox::posix::Semaphore ShutdownManager::s_semaphore = iox::posix::Semaphore::create(0u).get_value();
iox::posix::Semaphore ShutdownManager::s_semaphore = iox::posix::Semaphore::create(iox::posix::CreateUnnamedSingleProcessSemaphore, 0u).get_value();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use uppercase U

Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
@elfenpiff elfenpiff merged commit 785d3bd into eclipse-iceoryx:master Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants