Changeset 26c828f in rtems


Ignore:
Timestamp:
Nov 2, 1999, 3:29:04 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
fd882ee
Parents:
2b95c07
Message:

Added assert in case _Objects_Get_information fails since this
should NEVER occur.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/pthreadexit.c

    r2b95c07 r26c828f  
    1818#include <pthread.h>
    1919#include <errno.h>
     20#include <assert.h>
    2021
    2122#include <rtems/system.h>
     
    3132  the_information = _Objects_Get_information( _Thread_Executing->Object.id );
    3233
     34  /* This should never happen if _Thread_Get() works right */
     35  assert( the_information );
     36
    3337  _Thread_Disable_dispatch();
    3438
  • cpukit/posix/src/pthreadexit.c

    r2b95c07 r26c828f  
    1818#include <pthread.h>
    1919#include <errno.h>
     20#include <assert.h>
    2021
    2122#include <rtems/system.h>
     
    3132  the_information = _Objects_Get_information( _Thread_Executing->Object.id );
    3233
     34  /* This should never happen if _Thread_Get() works right */
     35  assert( the_information );
     36
    3337  _Thread_Disable_dispatch();
    3438
Note: See TracChangeset for help on using the changeset viewer.