Changeset 16090


Ignore:
Timestamp:
05/23/13 19:10:14 (12 years ago)
Author:
tbretz
Message:
Replaced queue by list; added Connection::IsTxQueueEmpty
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Connection.h

    r13209 r16090  
    22#define FACT_Connection
    33
     4#include <list>
    45#include <array>
    5 #include <deque>
    66#include <string>
     7
    78#include <boost/bind.hpp>
    89#include <boost/asio.hpp>
     
    3839    boost::asio::deadline_timer   fOutTimeout;
    3940    boost::asio::deadline_timer   fConnectionTimer;
    40     std::deque<std::vector<char>> fOutQueue;
     41    std::list<std::vector<char>> fOutQueue;
    4142
    4243    ConnectionStatus_t fConnectionStatus;
     
    136137    virtual void HandleReadTimeout(const boost::system::error_code&) { }
    137138
     139    bool IsTxQueueEmpty() const { return fOutQueue.empty(); }
     140
    138141    int IsClosed() const { return !is_open(); }
    139142
  • trunk/FACT++/src/ConnectionUSB.h

    r13294 r16090  
    22#define FACT_Connection
    33
     4#include <list>
    45#include <array>
    5 #include <deque>
    66#include <string>
     7
    78#include <boost/asio.hpp>
    89#include <boost/function.hpp>
     
    3738    boost::asio::deadline_timer   fOutTimeout;
    3839    boost::asio::deadline_timer   fConnectTimeout;
    39     std::deque<std::vector<uint8_t>> fOutQueue;
     40    std::list<std::vector<uint8_t>> fOutQueue;
    4041
    4142    ConnectionStatus_t fConnectionStatus;
Note: See TracChangeset for help on using the changeset viewer.