Repair a verified behavior in RT-Thread/rt-thread.
Repair a verified behavior in RT-Thread/rt-thread.: a task in OriGent-RL-Data (Harbor dataset). The RT-Thread POSIX pthread adapter gives a completed joinable thread the wrong final cleanup path. When pthread join(thread, value ptr) is called for a joinable pthread that has already terminated, the…
The task
The RT-Thread POSIX pthread adapter gives a completed joinable thread the wrong final cleanup path. When `pthread_join(thread, value_ptr)` is called for a joinable pthread that has already terminated, the implementation obtains the completion and copies the thread's return value, but then finishes as if the caller…
Part of henryen/OriGent-RL-Data.