mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 294/rtems * posix/src/pthread.c: POSIX thread exit handler now confirms that it created the executing thread before implicitly exitting it.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2004-09-27 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
PR 294/rtems
|
||||
* posix/src/pthread.c: POSIX thread exit handler now confirms that it
|
||||
created the executing thread before implicitly exitting it.
|
||||
|
||||
2004-09-27 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* libmisc/stackchk/check.c: Spacing.
|
||||
|
||||
@@ -239,6 +239,11 @@ User_extensions_routine _POSIX_Threads_Exitted_extension(
|
||||
Thread_Control *executing
|
||||
)
|
||||
{
|
||||
/*
|
||||
* If the executing thread was not created with the POSIX API, then this
|
||||
* API do not get to define its exit behavior.
|
||||
*/
|
||||
if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API )
|
||||
pthread_exit( executing->Wait.return_argument );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user