Changeset 0fa51b5b in rtems


Ignore:
Timestamp:
Nov 16, 1999, 10:46:55 PM (22 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4efe2b7a
Parents:
9181246
Message:

Added code to catch the error of suspend count exceding the counter value.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/itron/src/sus_tsk.c

    r9181246 r0fa51b5b  
    77 */
    88
     9#include <limits.h>
    910#include <itron.h>
    1011
     
    4445        _ITRON_return_errorno( E_OBJ );
    4546
     47      if (the_thread->suspend_count == INT_MAX )
     48        _ITRON_return_errorno( E_QOVR );
     49
    4650      _Thread_Suspend( the_thread );
    4751      break;
  • cpukit/itron/src/sus_tsk.c

    r9181246 r0fa51b5b  
    77 */
    88
     9#include <limits.h>
    910#include <itron.h>
    1011
     
    4445        _ITRON_return_errorno( E_OBJ );
    4546
     47      if (the_thread->suspend_count == INT_MAX )
     48        _ITRON_return_errorno( E_QOVR );
     49
    4650      _Thread_Suspend( the_thread );
    4751      break;
Note: See TracChangeset for help on using the changeset viewer.