Changeset 5bda3a9 in rtems


Ignore:
Timestamp:
Oct 22, 2003, 5:14:16 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
d5478e60
Parents:
49f466c
Message:

2003-10-22 Joel Sherrill <joel@…>

PR 512/core

  • src/tasks.c, src/taskvariabledelete.c: Run task variable destructor when task variable is deleted. Also some style cleanup.
Location:
cpukit/rtems
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/ChangeLog

    r49f466c r5bda3a9  
     12003-10-22      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 512/core
     4        * src/tasks.c, src/taskvariabledelete.c: Run task variable destructor
     5        when task variable is deleted. Also some style cleanup.
     6
    172003-09-11      Joel Sherrill <joel@OARcorp.com>
    28
  • cpukit/rtems/src/tasks.c

    r49f466c r5bda3a9  
    110110    next = tvp->next;
    111111    if  (tvp->dtor)
    112         (*tvp->dtor)(*tvp->ptr );
    113     if (executing == deleted)
     112        (*tvp->dtor)(*tvp->ptr);
     113    if (_Thread_Is_executing(deleted))
    114114        *tvp->ptr = tvp->gval;
    115115    _Workspace_Free( tvp );
  • cpukit/rtems/src/taskvariabledelete.c

    r49f466c r5bda3a9  
    5454        if (prev) prev->next = tvp->next;
    5555        else      the_thread->task_variables = tvp->next;
    56         if (_Thread_Is_executing (the_thread))
     56        if (tvp->dtor)
     57          (*tvp->dtor)(*tvp->ptr);
     58        if (_Thread_Is_executing(the_thread))
    5759          *tvp->ptr = tvp->gval;
     60        _Workspace_Free(tvp);
    5861        _Thread_Enable_dispatch();
    59         _Workspace_Free(tvp);
    6062        return RTEMS_SUCCESSFUL;
    6163      }
Note: See TracChangeset for help on using the changeset viewer.