Skip to content

Priority Inheriting Mutex in RealtimeBoxBestEffort #453

@jcarpinelli-bdai

Description

@jcarpinelli-bdai

I am interested in using realtime_tools for a thread-safe and realtime-safe Box class, but a static_assert condition prevents users from using RealtimeBoxBestEffort with the realtime-safe mutex definitions provided by realtime_tools.

template <class T>
using Arc = realtime_tools::RealtimeBoxBestEffort<std::shared_ptr<T>, realtime_tools::prio_inherit_mutex>;

Is this intentional? I'm opening an issue, as opposed to posting a question to the Robotics Stack Exchange / Discourse, because it appears to me that realtime_tools::prio_inherit_mutex cannot be used with any Realtime* classes in this project. How should users use realtime_tools::prio_inherit_mutex?

Apologies if I'm misunderstanding the code, or the intent of the prio_inherit_mutex type!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions