forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Thread name is not set #143
Comments
I dug a bit more into it and I found that the thread is created in This works:
|
Maybe there's some function to set a task name in freertos after it was created? |
I made this little helper function which I'm using in own of my projects until this issue is resolved:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried this code:
I expected to see this happen: The thread/freertos task gets names
thread1
Instead, this happened: The thread/freertos task gets names
pthread
My guess of a reason
There's not
set_name
implemented forespidf
:https://github.com/esp-rs/rust/blob/esp-1.64.0.0/library/std/src/sys/unix/thread.rs#L205
So the pthread name is not set and it defaults to
pthread
:https://github.com/espressif/esp-idf/blob/master/components/pthread/pthread.c#L237
The text was updated successfully, but these errors were encountered: