Added assert in case _Objects_Get_information fails since this

should NEVER occur.
This commit is contained in:
Joel Sherrill
1999-11-02 15:29:04 +00:00
parent 2b95c07bda
commit 26c828fe47
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -17,6 +17,7 @@
#include <pthread.h>
#include <errno.h>
#include <assert.h>
#include <rtems/system.h>
#include <rtems/score/thread.h>
@@ -30,6 +31,9 @@ void pthread_exit(
the_information = _Objects_Get_information( _Thread_Executing->Object.id );
/* This should never happen if _Thread_Get() works right */
assert( the_information );
_Thread_Disable_dispatch();
_Thread_Executing->Wait.return_argument = (unsigned32 *)value_ptr;
+4
View File
@@ -17,6 +17,7 @@
#include <pthread.h>
#include <errno.h>
#include <assert.h>
#include <rtems/system.h>
#include <rtems/score/thread.h>
@@ -30,6 +31,9 @@ void pthread_exit(
the_information = _Objects_Get_information( _Thread_Executing->Object.id );
/* This should never happen if _Thread_Get() works right */
assert( the_information );
_Thread_Disable_dispatch();
_Thread_Executing->Wait.return_argument = (unsigned32 *)value_ptr;