Changeset 58cde54 in rtems


Ignore:
Timestamp:
Jun 10, 2013, 12:18:57 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
7338299c
Parents:
2a8713a
git-author:
Sebastian Huber <sebastian.huber@…> (06/10/13 12:18:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/12/13 14:11:25)
Message:

termios: Move wake up writer task action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/termios.c

    r2a8713a r58cde54  
    12881288rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)
    12891289{
     1290  bool wakeUpWriterTask = false;
    12901291  unsigned int newTail;
    12911292  int nToSend;
     
    13311332       * this should never happen...
    13321333       */
    1333       rtems_semaphore_release (tty->rawOutBuf.Semaphore);
     1334      wakeUpWriterTask = true;
    13341335    }
    13351336
     
    13471348       * wake up any pending writer task
    13481349       */
    1349       rtems_semaphore_release (tty->rawOutBuf.Semaphore);
     1350      wakeUpWriterTask = true;
    13501351    }
    13511352
     
    13941395    tty->rawOutBuf.Tail = newTail; /*apm*/
    13951396  }
     1397
     1398  if (wakeUpWriterTask) {
     1399    rtems_semaphore_release (tty->rawOutBuf.Semaphore);
     1400  }
     1401
    13961402  return nToSend;
    13971403}
Note: See TracChangeset for help on using the changeset viewer.