mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
epoll server queue, tc_cas_queue change to tc_thread_queue
This commit is contained in:
parent
fbc66a2ad9
commit
dab2708f93
@ -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, 无数据
|
||||
*/
|
||||
|
@ -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;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user