epoll server queue, tc_cas_queue change to tc_thread_queue

This commit is contained in:
ruanshudong 2020-04-06 21:48:02 +08:00
parent fbc66a2ad9
commit dab2708f93
2 changed files with 6 additions and 4 deletions

View File

@ -42,7 +42,7 @@ public:
T front();
/**
* @brief , .
* @brief
*
* @param t
* @return bool: true, , false,
@ -50,7 +50,7 @@ public:
bool pop_front(T& t);
/**
* @brief , .
* @brief
*
* @return bool: true, , false,
*/

View File

@ -168,8 +168,10 @@ public:
int64_t _recvTimeStamp; /**接收到数据的时间*/
};
typedef TC_CasQueue<shared_ptr<RecvContext>> recv_queue;
typedef TC_CasQueue<shared_ptr<SendContext>> send_queue;
// typedef TC_CasQueue<shared_ptr<RecvContext>> recv_queue;
typedef TC_ThreadQueue<shared_ptr<RecvContext>> recv_queue;
// typedef TC_CasQueue<shared_ptr<SendContext>> send_queue;
typedef TC_ThreadQueue<shared_ptr<SendContext>> send_queue;
typedef recv_queue::queue_type recv_queue_type;
////////////////////////////////////////////////////////////////////////////