Changeset 67d224a in rtems


Ignore:
Timestamp:
Dec 8, 1995, 9:06:15 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
2b5944cf
Parents:
7826883
Message:

added correct use of _Thread_queue_Enter_critical_section

Files:
12 edited

Legend:

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

    r7826883 r67d224a  
    351351      the_cond->Mutex = *mutex;
    352352 
     353/* XXX .. enter critical section .. */
    353354      _Thread_queue_Enqueue( &the_cond->Wait_queue, 0 );
    354355
  • c/src/exec/rtems/src/region.c

    r7826883 r67d224a  
    356356      executing->Wait.return_argument = (unsigned32 *) segment;
    357357
    358       the_region->Wait_queue.sync = TRUE;
     358      _Thread_queue_Enter_critical_section( &the_region->Wait_queue );
    359359
    360360      _Thread_queue_Enqueue( &the_region->Wait_queue, timeout );
  • c/src/exec/score/src/coremsg.c

    r7826883 r67d224a  
    285285  }
    286286
    287   the_message_queue->Wait_queue.sync = TRUE;
     287  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
    288288  executing->Wait.queue              = &the_message_queue->Wait_queue;
    289289  executing->Wait.id                 = id;
  • c/src/exec/score/src/coremutex.c

    r7826883 r67d224a  
    140140  }
    141141
    142   the_mutex->Wait_queue.sync = TRUE;
     142  _Thread_queue_Enter_critical_section( &the_mutex->Wait_queue );
    143143  executing->Wait.queue      = &the_mutex->Wait_queue;
    144144  executing->Wait.id         = id;
  • c/src/exec/score/src/coresem.c

    r7826883 r67d224a  
    147147  }
    148148
    149   the_semaphore->Wait_queue.sync = TRUE;
     149  _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
    150150  executing->Wait.queue          = &the_semaphore->Wait_queue;
    151151  executing->Wait.id             = id;
  • c/src/exec/score/src/mpci.c

    r7826883 r67d224a  
    196196    (*_MPCI_table->send_packet)( destination, the_packet );
    197197
    198     _MPCI_Remote_blocked_threads.sync = TRUE;
     198    _Thread_queue_Enter_critical_section( &_MPCI_Remote_blocked_threads );
    199199
    200200    /*
  • cpukit/posix/src/cond.c

    r7826883 r67d224a  
    351351      the_cond->Mutex = *mutex;
    352352 
     353/* XXX .. enter critical section .. */
    353354      _Thread_queue_Enqueue( &the_cond->Wait_queue, 0 );
    354355
  • cpukit/rtems/src/region.c

    r7826883 r67d224a  
    356356      executing->Wait.return_argument = (unsigned32 *) segment;
    357357
    358       the_region->Wait_queue.sync = TRUE;
     358      _Thread_queue_Enter_critical_section( &the_region->Wait_queue );
    359359
    360360      _Thread_queue_Enqueue( &the_region->Wait_queue, timeout );
  • cpukit/score/src/coremsg.c

    r7826883 r67d224a  
    285285  }
    286286
    287   the_message_queue->Wait_queue.sync = TRUE;
     287  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
    288288  executing->Wait.queue              = &the_message_queue->Wait_queue;
    289289  executing->Wait.id                 = id;
  • cpukit/score/src/coremutex.c

    r7826883 r67d224a  
    140140  }
    141141
    142   the_mutex->Wait_queue.sync = TRUE;
     142  _Thread_queue_Enter_critical_section( &the_mutex->Wait_queue );
    143143  executing->Wait.queue      = &the_mutex->Wait_queue;
    144144  executing->Wait.id         = id;
  • cpukit/score/src/coresem.c

    r7826883 r67d224a  
    147147  }
    148148
    149   the_semaphore->Wait_queue.sync = TRUE;
     149  _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
    150150  executing->Wait.queue          = &the_semaphore->Wait_queue;
    151151  executing->Wait.id             = id;
  • cpukit/score/src/mpci.c

    r7826883 r67d224a  
    196196    (*_MPCI_table->send_packet)( destination, the_packet );
    197197
    198     _MPCI_Remote_blocked_threads.sync = TRUE;
     198    _Thread_queue_Enter_critical_section( &_MPCI_Remote_blocked_threads );
    199199
    200200    /*
Note: See TracChangeset for help on using the changeset viewer.