- if (pthread_self() == _sending_thread) {
- send_immediately (c);
- } else {
- _pending.write (&c, 1);
- }
-}
-
-/** Send any pending MMC commands immediately. Must be called from _sending_thread */
-void
-MachineControl::flush_pending ()
-{
- MachineControlCommand c;
- while (_pending.read (&c, 1) == 1) {
- send_immediately (c);
- }
-}
-
-/** Send a MMC immediately. Must be called from _sending_thread.
- * @param c command, which this method takes ownership of.
- */
-void
-MachineControl::send_immediately (MachineControlCommand const & c)
-{
- if (_port == 0 || !_enable_send) {