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

Incompatible thread argument types in C api #56

Open
LnnrtS opened this issue Oct 12, 2020 · 1 comment
Open

Incompatible thread argument types in C api #56

LnnrtS opened this issue Oct 12, 2020 · 1 comment
Assignees
Labels

Comments

@LnnrtS
Copy link
Contributor

LnnrtS commented Oct 12, 2020

This cast is invalid

(thread::func_t) thread_def->pthread, args, attr);

because the definitions of thread arguments in µOS++ ( void (*)(const void*) ) and cmsis (void* (*)(void*)) are not compatible.

But neither can be easily changed as it seems.. Probably something to keep in mind for later.

@ilg-ul ilg-ul self-assigned this Oct 12, 2020
@ilg-ul ilg-ul added the bug label Oct 12, 2020
@ilg-ul
Copy link
Contributor

ilg-ul commented Oct 12, 2020

Thank you, I don't have a solution now, we'll keep it in mind for later.

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

No branches or pull requests

2 participants