Changeset 2be22d4 in rtems


Ignore:
Timestamp:
Oct 17, 2017, 6:38:47 AM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3f3f4248
Parents:
2fcea4c
git-author:
Sebastian Huber <sebastian.huber@…> (10/17/17 06:38:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/17/17 08:21:03)
Message:

posix: Move POSIX_API_Control::thread

This member is only used by the sporadic server support.

Update #2514.

Location:
cpukit/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/threadsup.h

    r2fcea4c r2be22d4  
    4141 */
    4242typedef struct {
    43   /** Back pointer to thread of this POSIX API control. */
    44   Thread_Control         *thread;
    45 
    4643  /** Created with explicit or inherited scheduler. */
    4744  bool created_with_explicit_scheduler;
     
    5754   */
    5855  struct {
     56    /** The thread of this sporadic control block */
     57    Thread_Control *thread;
     58
    5959    /**
    6060     * @brief This is the timer which controls when the thread executes at high
  • cpukit/posix/src/pthread.c

    r2fcea4c r2be22d4  
    5050
    5151  api = RTEMS_CONTAINER_OF( watchdog, POSIX_API_Control, Sporadic.Timer );
    52   the_thread = api->thread;
     52  the_thread = api->Sporadic.thread;
    5353
    5454  _Thread_queue_Context_initialize( &queue_context );
     
    128128
    129129  /* XXX check all fields are touched */
    130   api->thread = created;
    131130  api->schedparam.sched_priority = _POSIX_Priority_From_core(
    132131    _Thread_Scheduler_get_home( created ),
     
    150149  }
    151150
     151  api->Sporadic.thread = created;
    152152  _Watchdog_Preinitialize( &api->Sporadic.Timer, _Per_CPU_Get_by_index( 0 ) );
    153153  _Watchdog_Initialize( &api->Sporadic.Timer, _POSIX_Threads_Sporadic_timer );
Note: See TracChangeset for help on using the changeset viewer.