fifo_connection_purging_strategy.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 35 行
CPP
35 行
// FIFO_Connection_Purging_Strategy.cpp,v 1.4 2001/05/23 14:06:37 oci Exp
#include "FIFO_Connection_Purging_Strategy.h"
#include "tao/Transport.h"
ACE_RCSID(tao, FIFO_Connection_Purging_Strategy, "FIFO_Connection_Purging_Strategy.cpp,v 1.4 2001/05/23 14:06:37 oci Exp")
TAO_FIFO_Connection_Purging_Strategy::TAO_FIFO_Connection_Purging_Strategy (
int cache_maximum)
: TAO_Connection_Purging_Strategy (cache_maximum),
// Initialized to 1 to insure that the transports purging_order
// is only 0 upon initialization.
order_ (1)
{
}
TAO_FIFO_Connection_Purging_Strategy::~TAO_FIFO_Connection_Purging_Strategy (void)
{
}
void
TAO_FIFO_Connection_Purging_Strategy::update_item (TAO_Transport* transport)
{
// FIFO, so only update the purging order if this
// item has not been cached yet.
if (transport->purging_order () == 0)
{
transport->purging_order (this->order_++);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?