mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-21 07:11:14 +08:00
[modify] the recycle logic about resource of pthread.
This commit is contained in:
@@ -20,8 +20,13 @@ void __rt_libc_exit(int status)
|
||||
|
||||
if (self != RT_NULL)
|
||||
{
|
||||
#ifdef RT_USING_PTHREADS
|
||||
extern void pthread_exit(void *value);
|
||||
pthread_exit((void *)status);
|
||||
#else
|
||||
LOG_E("thread:%s exit:%d!", self->name, status);
|
||||
rt_thread_control(self, RT_THREAD_CTRL_CLOSE, RT_NULL);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user