Changeset 8c44190a in rtems for cpukit/libblock


Ignore:
Timestamp:
04/28/09 11:17:36 (15 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 5, master
Children:
07d6fd5
Parents:
046fe12b
Message:

2009-04-28 Chris Johns <chrisj@…>

  • libblock/src/bdbuf.c: Flush the transfer sync event before blocking in a read.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    r046fe12b r8c44190a  
    16401640     * of the bdbuf code.
    16411641     */
    1642     int      result;
    1643     uint32_t b;
    1644    
     1642    rtems_event_set out;
     1643    int             result;
     1644    uint32_t        b;
     1645
     1646    /*
     1647     * Flush any events.
     1648     */
     1649    rtems_event_receive (RTEMS_BDBUF_TRANSFER_SYNC,
     1650                         RTEMS_EVENT_ALL | RTEMS_NO_WAIT,
     1651                         0, &out);
     1652                         
    16451653    rtems_bdbuf_unlock_pool (pool);
    16461654
     
    16661674    {
    16671675      rtems_status_code sc;
    1668       rtems_event_set   out;
     1676     
    16691677      sc = rtems_event_receive (RTEMS_BDBUF_TRANSFER_SYNC,
    16701678                                RTEMS_EVENT_ALL | RTEMS_WAIT,
Note: See TracChangeset for help on using the changeset viewer.