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

Replace std::function occurrences #131

Closed
2 tasks done
mossmaurice opened this issue Jun 9, 2020 · 3 comments
Closed
2 tasks done

Replace std::function occurrences #131

mossmaurice opened this issue Jun 9, 2020 · 3 comments
Assignees
Labels
refactoring Refactor code without adding features
Milestone

Comments

@mossmaurice
Copy link
Contributor

mossmaurice commented Jun 9, 2020

Brief feature description

std::function is hard to validate for ASIL, hence replace it in targets with quality level 1, 2 and 3.

Detailed information

  • Replace all occurrences with cxx::function_ref when used as function parameter
  • Find a solution for all other places e.g. posix::Timer
@mossmaurice mossmaurice added the refactoring Refactor code without adding features label Jun 9, 2020
@mossmaurice mossmaurice self-assigned this Jun 9, 2020
mossmaurice added a commit to mossmaurice/iceoryx that referenced this issue Jun 10, 2020
…in optional

Signed-off-by: Hoinkis Simon (CC-AD/ESW1) <simon.hoinkis2@de.bosch.com>
mossmaurice added a commit to mossmaurice/iceoryx that referenced this issue Jun 10, 2020


Signed-off-by: Hoinkis Simon (CC-AD/ESW1) <simon.hoinkis2@de.bosch.com>
mossmaurice added a commit to mossmaurice/iceoryx that referenced this issue Jun 13, 2020
…tion_ref and add its respective test case

Signed-off-by: Hoinkis Simon (CC-AD/ESW1) <simon.hoinkis2@de.bosch.com>
mossmaurice added a commit to mossmaurice/iceoryx that referenced this issue Jun 15, 2020
…in cxx::expected

Signed-off-by: Hoinkis Simon (CC-AD/ESW1) <simon.hoinkis2@de.bosch.com>
mossmaurice added a commit to mossmaurice/iceoryx that referenced this issue Jun 15, 2020
…test build

Signed-off-by: Hoinkis Simon (CC-AD/ESW1) <simon.hoinkis2@de.bosch.com>
mossmaurice added a commit to mossmaurice/iceoryx that referenced this issue Jun 15, 2020
@mossmaurice
Copy link
Contributor Author

Step 2) consists of

  • ErrorHandler
  • posix::Timer
  • Iceoryx2DDSGateway
  • Subscriber_t::setReceiveHandler
  • PoshRuntime::s_runtimeFactory
  • GenericRAII
  • ActiveObject

mossmaurice added a commit to mossmaurice/iceoryx that referenced this issue Jun 15, 2020
Signed-off-by: Hoinkis Simon (CC-AD/ESW1) <simon.hoinkis2@de.bosch.com>
mossmaurice added a commit that referenced this issue Jun 16, 2020
…-in-function-params

Iox #131 Remove std::function in expected and optional
@mossmaurice
Copy link
Contributor Author

Just discussed this topic with @elBoberido

Step 2) consists of

* `ErrorHandler`

function_ref can be used

* `posix::Timer`

will be removed

* `Iceoryx2DDSGateway`

not relevant, quality level 4

* `Subscriber_t::setReceiveHandler`

will be removed with iceoryx 1.0 release

* `PoshRuntime::s_runtimeFactory`

function_ref can be used

* `GenericRAII`

function_ref can be used for c'tor but not for d'tor open point

* `ActiveObject`

open point, reference counting on callable user might solve the lifetime issue (save_ref)

@mossmaurice
Copy link
Contributor Author

Duplicate of #831 closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactor code without adding features
Projects
None yet
Development

No branches or pull requests

2 participants