1 #include "tao/Strategies/FIFO_Connection_Purging_Strategy.h"
2 #include "tao/Transport.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
6 TAO_FIFO_Connection_Purging_Strategy::TAO_FIFO_Connection_Purging_Strategy (
8 : TAO_Connection_Purging_Strategy (cache_maximum
),
9 // Initialized to 1 to insure that the transports purging_order
10 // is only 0 upon initialization.
16 TAO_FIFO_Connection_Purging_Strategy::update_item (TAO_Transport
& transport
)
18 // FIFO, so only update the purging order if this
19 // item has not been cached yet.
20 if (transport
.purging_order () == 0)
22 transport
.purging_order (this->order_
++);
26 TAO_END_VERSIONED_NAMESPACE_DECL