Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / Strategies / FIFO_Connection_Purging_Strategy.cpp
blob50bec206b7a43614b5eb44b2814abe28ee3b3511
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 (
7 int cache_maximum)
8 : TAO_Connection_Purging_Strategy (cache_maximum),
9 // Initialized to 1 to insure that the transports purging_order
10 // is only 0 upon initialization.
11 order_ (1)
15 void
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