Add some extensions to pthread for armv6k-nintendo-3ds#5
Conversation
The pthread_attr_t type can have priority and affinity values set. pthread_getpriority returns the priority of the current thread. These are needed to enable std thread support. std can't link directly with libctru so we go through pthread as an intermediate interface.
|
No, we shouldn’t define functions not normally found in standard declarations. Default values could be: the spawning thread’s priority, and the normal core (0). |
|
That sounds really cursed and I doubt std will merge that. That's tying std even closer to the implementation details. There's other pthread functions only found on certain platforms in the libc crate already, so I think this is somewhat normal. |
|
I really don’t like both ideas honestly… let’s go with this one anyways. It isn’t directly tied to devkitPRO, but we are putting ourselves in a weird position. Let’s go on with this for now. |
The pthread_attr_t type can have priority and affinity values set.
pthread_getpriority returns the priority of the current thread.
These are needed to enable std thread support. std can't link directly with libctru so we go through pthread as an intermediate interface.