Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Cache/Statistics.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5namespace Stroika::Foundation::Cache::Statistics {
6
7 /*
8 ********************************************************************************
9 ***************************** Statistics::Stats_Basic **************************
10 ********************************************************************************
11 */
12 inline Stats_Basic::Stats_Basic (const Stats_Basic& src)
13 : fCachedCollected_Hits{src.fCachedCollected_Hits.load ()}
14 , fCachedCollected_Misses{src.fCachedCollected_Misses.load ()}
15 {
16 }
17 inline void Stats_Basic::IncrementHits ()
18 {
19 ++fCachedCollected_Hits;
20 }
21 inline void Stats_Basic::IncrementMisses ()
22 {
23 ++fCachedCollected_Misses;
24 }
25
26 /*
27 ********************************************************************************
28 ****************************** Statistics::Stats_Null **************************
29 ********************************************************************************
30 */
31 inline void Stats_Null::IncrementHits ()
32 {
33 }
34 inline void Stats_Null::IncrementMisses ()
35 {
36 }
37
38}