Ticket #1942: diff

File diff, 1021 bytes (added by Ralf Corsepius, on Oct 24, 2011 at 11:56:13 AM)

Patch supposed to resolve issue

  • score/src/schedulercbsdetachthread.c

    ? changes
    ? diff
    ? list
    RCS file: /usr1/CVS/rtems/cpukit/score/src/schedulercbsdetachthread.c,v
    retrieving revision 1.1
    diff -u -r1.1 schedulercbsdetachthread.c
     
    3131  /* The routine _Thread_Get may disable dispatch and not enable again. */
    3232  if ( the_thread ) {
    3333    _Thread_Enable_dispatch();
    34     sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
    3534  }
    3635
    3736  if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     
    4645    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    4746
    4847  _Scheduler_CBS_Server_list[server_id]->task_id = -1;
     48  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
    4949  sched_info->cbs_server = NULL;
    5050
    5151  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;