-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Find a better naming for "MAIN"-constants #732
Comments
Why not increment |
Well, |
I would think currently Either I create a thread with printf, then I use May we should keep |
What about this case: your application or library needs to spawn a thread and you know that it requires a stack either much smaller or much bigger than the default case. But this thread also calls Anyway, if I get you right you feel comfortable with |
Let me rephrase it: my application needs printf and needs much more memory than usually. |
It seems no one has a good idea. |
There are two constants in RIOT having a
MAIN
in their name, that are actually meant to be used not only for the main thread (as the name would suggest) but as standard case:KERNEL_CONF_STACKSIZE_MAIN
PRIORITY_MAIN
In order to reflect the intension to use these variables as a default value I propose to add a constant
PRIORITY_DEFAULT
. However, for the stack size constant it's a bit more difficult, because we already have aKERNEL_CONF_STACKSIZE_DEFAULT
which differs fromKERNEL_CONF_STACKSIZE_MAIN
by not offering enough stack for using printf(). So, in short I'm looking for a more self-explaining name for a constant set to(KERNEL_CONF_STACKSIZE_DEFAULT + KERNEL_CONF_STACKSIZE_PRINTF)
.The text was updated successfully, but these errors were encountered: