From 26c828fe47ed75198c4524320189068d4232813f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 15:29:04 +0000 Subject: Added assert in case _Objects_Get_information fails since this should NEVER occur. --- c/src/exec/posix/src/pthreadexit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'c/src/exec/posix') diff --git a/c/src/exec/posix/src/pthreadexit.c b/c/src/exec/posix/src/pthreadexit.c index 35c3c99b33..085db519a7 100644 --- a/c/src/exec/posix/src/pthreadexit.c +++ b/c/src/exec/posix/src/pthreadexit.c @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -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; -- cgit v1.2.3