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

Task API provides no mechanism to provide an instance parameter #1394

Open
BrianSipos opened this issue May 25, 2023 · 0 comments
Open

Task API provides no mechanism to provide an instance parameter #1394

BrianSipos opened this issue May 25, 2023 · 0 comments

Comments

@BrianSipos
Copy link

Is your feature request related to a problem? Please describe.
There is currently no way to provide a runtime parameter to a task that is visible to the specific function executed in the task thread.

Describe the solution you'd like
Both POSIX and RTEMS provide the ability to provide a single task function argument in the form of an opaque pointer (RTEMS isn't typed as a pointer but has a guaranteed size able to hold a pointer).

Describe alternatives you've considered
Without a mechanism to give a parameter to a task function, the only way to provide task-instance-specific data is some kind of an external thread-safe queue for each task function, and all of the excess bookkeeping required for that queue.

Requester Info
Brian Sipos, JHU/APL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants